FYI: Manifest reading of JarFile
Mark Wielaard
mark@klomp.org
Fri Feb 7 21:21:00 GMT 2003
Hi,
The following was found by one of the JRVM devlopers (Julian Dolby) and
committed to Classpath a while ago. When a JarFile is opened with the
verify flag on then the Manifest should be available if it is never
explicitly used by the program and the file has been closed again.
2003-02-07 Mark Wielaard <mark@klomp.org>
* java/util/jar/JarFile.java (JarFile(String, boolean)): Read manifest
when verify is true.
(JarFile(File, boolean)): Likewise.
(manifestRead): Set manifestRead field correctly.
I am committing this to branch and mainline.
This make the Eclipse online Update Manger work. I have successfully
used this to install the WebDav support that was needed for the Sftp
File Synchronization plugin (which works flawlessly under gij BTW).
<http://www.klomp.org/eclipse-plugins/org.klomp.eclipse.team.sftp/>
Note that we don't actually verify the Manifest entry (and to run
Eclipse you have to disable the byte code verifyer) so this is certainly
not recommended for loading arbitraty (untrusted) classees from the net.
Cheers,
Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: JarFile.patch
Type: text/x-patch
Size: 1788 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20030207/d4eb4cb4/attachment.bin>
More information about the Java-patches
mailing list