NestedJarFromStream serialization contract is incorrect
-------------------------------------------------------
Key: JBVFS-17
URL:
http://jira.jboss.com/jira/browse/JBVFS-17
Project: JBoss VFS
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Scott M Stark
Assigned To: Scott M Stark
The serialization of the NestedJarFromStream is incorrect. Its using default serialization
of these fields:
private transient ZipInputStream zis;
private URL jarURL;
private URL entryURL;
private long lastModified;
private long size;
private AtomicBoolean inited = new AtomicBoolean(false);
The problem is that the inited flag should not be serialized as this implies its parents
fields:
private transient List<VirtualFileHandler> entries;
private transient Map<String, VirtualFileHandler> entryMap;
have been initialized. They will not be after deserialization of NestedJarFromStream as it
lazily does initialization.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira