Issue490470

classification
Title: jythonc misses ProxyMaker
Type: Severity: normal
Components: Jythonc compiler Versions:
Milestone:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: bckfnn Nosy List: bckfnn, herron
Priority: normal Keywords:

Created on 2001-12-08.00:04:10 by herron, last changed 2001-12-10.20:37:28 by bckfnn.

Files
File name Uploaded Description Edit Remove
Test.py herron, 2001-12-08.00:04:11
Messages
msg511 (view) Author: Gary Herron (herron) Date: 2001-12-08.00:04:10
The attached (very short) program, when compiled and
run as an applet fails with the message:

java.lang.NoClassDefFoundError:
    org/python/compiler/ProxyMaker

The culprit is the inclusion of a (so far unused) class
with swing.Box as its base class.
    class Useless(swing.Box): pass
Removing this class, or deleting the swing.Box base
class eliminates the error.

But, of course, I will really want this class, so
my sledge hammer work around is to compile with
  --all
on the jythonc statement. forcing ProxyMaker (and
lots more) into the jar file.



msg512 (view) Author: Finn Bock (bckfnn) Date: 2001-12-10.20:37:28
Logged In: YES 
user_id=4201

The real problem in your example is the use of pawt. That 
module is way too dynamic for jythonc to figure out that 
Box is a java class.

Use "import javax.swing as swing" instead.

This limitation in jythonc will never be fixed.

While it is possible to add an options that include the 
ProxyMaker subsystem without including the parser, I don't 
see much use for it.

I'm going to close this report and mark it as "Wont fix". 
Lets continue any discussion about new jythonc options on 
jython-dev.
History
Date User Action Args
2001-12-08 00:04:10herroncreate