Message875
When using jythonc to compile a Jython class that
references an uncompiled class in a @sig statement:
# A.py
import B
class A:
def setB(self, b):
"""@sig public void setB(B b)"""
self.b = b
# B.py
class B:
def doSomething(self):
"""@sig public void doSomething()"""
print "I am doing something"
Jythonc produces an error with the following output:
processing A
processing B
Required packages:
Creating adapters:
Creating .java files:
B module
A module
Traceback (innermost last):
File "C:\jython-2.1\Tools\jythonc\jythonc.py", line
5, in ?
File "c:\jython-2.1\Tools\jythonc\main.py", line 301,
in main
File "c:\jython-2.1\Tools\jythonc\main.py", line 221,
in doCompile
File "c:\jython-2.1\Tools\jythonc\compile.py", line
389, in dump
File "c:\jython-2.1\Tools\jythonc\compile.py", line
325, in preprocessModule
File "c:\jython-2.1\Tools\jythonc\compile.py", line
312, in makeJavaProxy
File "c:\jython-2.1\Tools\jythonc\compile.py", line
58, in getsig
File "c:\jython-2.1\Tools\jythonc\compile.py", line
84, in insistJavaClass
ValueError: can not find class: B
While compiling B.py first would work for this example, it
is not really a solution for large builds.
To reproduce, in the directory that A.py and B.py reside
in:
jythonc *.py
or
jythonc A.py B.py |
|
Date |
User |
Action |
Args |
2008-02-20 17:17:16 | admin | link | issue839683 messages |
2008-02-20 17:17:16 | admin | create | |
|