Message617

Author kevinbutler
Recipients
Date 2003-10-23.23:25:17
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=117665

I have now found a problem with large files, but I don't
know if it is the same as the original bug or not.

Steps to do what I've done:
- Increase heap space available to Jython, by modifying
'jython' script to include -Xmx256m -Xms256m 

- Save the 'createBigFile.py' (attached) to some directory
with lots of space.

- jython createBigFile.py (creates big.py)

- jython big.py
Traceback (innermost last):
  (no code object) at line 0
java.lang.ClassFormatError: org/python/pycode/_pyx0 (Code of
a method longer than 65535 bytes)
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at
org.python.core.BytecodeLoader2.loadClassFromBytes(BytecodeLoader2.java)
	at
org.python.core.BytecodeLoader.makeClass(BytecodeLoader.java)
	at org.python.core.BytecodeLoader.makeCode(BytecodeLoader.java)
	at org.python.core.Py.compile_flags(Py.java)
	at org.python.core.Py.compile_flags(Py.java)
	at org.python.core.__builtin__.execfile_flags(__builtin__.java)
	at
org.python.util.PythonInterpreter.execfile(PythonInterpreter.java)
	at org.python.util.jython.main(jython.java)

java.lang.ClassFormatError: java.lang.ClassFormatError:
org/python/pycode/_pyx0 (Code of a method longer than 65535
bytes)

Note that this is partly a Java limitation, and partly a
"mapping Python code to Java" issue.

Is this the error that was intended with this bug?
History
Date User Action Args
2008-02-20 17:17:04adminlinkissue527524 messages
2008-02-20 17:17:04admincreate