Message715

Author mattbehrens
Recipients
Date 2002-09-05.15:08:23
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Trying to jar up jythonc itself to create a
self-contained ant task, I ran into the following type
of problem (100 of them, yow!)

./jpywork/foo/yapm.java:216: incompatible types
found   : org.python.core.PyList
required: foo.Object
            if (inst != null) inst._jcall(new Object[]
{arg0, arg1, arg2, Py.newBoolean(arg3),
Py.newBoolean(arg4)});
                                                      
       ^
Since jythonc comes with an "Object" class, javac
appears to prefer the one in my package to the
java.lang one.

It would seem the appropriate fix would be to have
javac emit java.lang.Object.  I grepped and grepped but
am not clear on how to make that happen.

To reproduce:

depender.py:
  from jythonc import main
  main.main()

$ jython
-Dpython.path=$JYTHONHOME/Lib:$JYTHONHOME/Tools
$JYTHONHOME/Tools/jythonc/jythonc.py --package foo
--jar depender.jar depender.py
History
Date User Action Args
2008-02-20 17:17:08adminlinkissue605098 messages
2008-02-20 17:17:08admincreate