Message561

Author wr0ngway
Recipients
Date 2002-01-31.23:21:25
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The jreload Module does not read in the entire class 
file due to incorrect usage of InputStream.read().
The following example will fail unless the attached 
patch is applied.  Edit the value of toolsjar to point 
to the tools.jar from your jdk, or use some other 
large class file from somewhere else.  The patch also 
adds a getResourceAsStream() method for finding 
resources from the loadset.

from jreload import makeLoadSet
from java.lang import System

toolsjar = "/path/to/jdk/lib/tools.jar"
makeLoadSet('myls', [toolsjar])
# Any large class file causes a ClassFormatError
from myls.com.sun.tools.corba.se.idl import Parser
print "Success"


History
Date User Action Args
2008-02-20 17:17:00adminlinkissue511493 messages
2008-02-20 17:17:00admincreate