40 lines
1.4 KiB
Plaintext
40 lines
1.4 KiB
Plaintext
From: jamz at my-dejanews.com (jamz at my-dejanews.com)
|
|
Date: Tue, 27 Apr 1999 15:52:47 GMT
|
|
Subject: JPython 64K limit on source-code size?
|
|
Message-ID: <7g4mgd$uo7$1@nnrp1.dejanews.com>
|
|
Content-Length: 1177
|
|
X-UID: 1579
|
|
|
|
I have a JPython program I'm using as a test suite. It's generated code and
|
|
around 74K long. When I try to run it with JPython I get this message:
|
|
|
|
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(ClassLoader.java:382)
|
|
at org.python.core.BytecodeLoader.loadClass(BytecodeLoader.java:12)
|
|
at org.python.core.BytecodeLoader.loadBytes(BytecodeLoader.java:23)
|
|
at org.python.core.BytecodeLoader.makeCode(BytecodeLoader.java:41)
|
|
at org.python.core.Py.compile(Py.java:997)
|
|
at org.python.core.Py.compile(Py.java:1007)
|
|
at org.python.core.__builtin__.execfile(__builtin__.java:220)
|
|
at org.python.core.jpython.main(jpython.java:141)
|
|
|
|
|
|
If this 64K ceiling is indeed a basic limitation of JPython because of Java,
|
|
I'm wondering if there is an easy way to split the file into pieces in a
|
|
chain-like fashion. Any ideas?
|
|
|
|
Thanks,
|
|
|
|
Monty
|
|
|
|
-----------== Posted via Deja News, The Discussion Network ==----------
|
|
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
|
|
|
|
|
|
|
|
|