From: Owen D. <ow...@ba...> - 2006-10-05 04:28:11
|
I'm using jythonc to create a class which subclasses an exiting class which has a standard main() method. I get the following error: 1 ./jpywork/RandBoxes.java:94: main(java.lang.String[]) in RandBoxes cannot override main(java.lang.String[]) in processing.core.PApplet; overridden method does not throw java.lang.Exception public static void main(String[] args) throws java.lang.Exception { ^ Note that the above main signature is automatically generated by jythonc in the jpywork/xxx.java file. Unfortunately, this is the incorrect signature for a main() static method .. it should not throw an exception. Is this a jythonc bug? I'm using Jython 2.2a1. I'll send more details if needed. One note: the class I'm subclassing is a subclass of Applet, and provides its own main which lets the class be used both as an applet and an application. The class is PApplet, from Processing.org's graphics system. See: http://dev.processing.org/reference/core/ Any help appreciated! -- Owen Owen Densmore 505-988-3787 http://backspaces.net Redfish Group: 505-995-0206 http://redfish.com http://friam.org/ |