Message561
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"
|
|
Date |
User |
Action |
Args |
2008-02-20 17:17:00 | admin | link | issue511493 messages |
2008-02-20 17:17:00 | admin | create | |
|