mardi 7 juillet 2015

Reaching static field declared in serialPersistentFields

So xstream (v1.4.8) with this line

private Object More ...readField(ObjectStreamField field, Class type, Object instance) {
        try {
           Field javaField = type.getDeclaredField(field.getName());

more here
tries to reach the field named "list" (field.getName() returns "list")

private static final ObjectStreamField[] serialPersistentFields = {
             new ObjectStreamField("list", VirtualFilePermission[].class)
     };

declared in org.jboss.vfs.VirtualFilePermissionCollection but runs into NoSuchFieldException. Why is that?





Aucun commentaire:

Enregistrer un commentaire