| Exemplo |
|
public static class SerializableObject implements Serializable{ synchronized private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); } } |
| Solução | |
Declare readObject() sem modificador
sincronizado
|