Hi

Shouldn't that be self.run() ?

Cheers,
Viğar

On Tue, Mar 17, 2009 at 1:16 PM, pratibha chitipothu <pratibha.chitipothu@gmail.com> wrote:

I am facing a problem with jython sub class which is extending from a java
abstrct class.
For some reason i am not able to access any of the super class methods from
jython sub class. Any idea what is going wrong. The same class is working
fine in the older version of jython. Currently i am using jython 2.5b3.

Code sample:
Super class:
public abstract class Worker {
    ......

    public void run() {
         .....
    }
    ......
}

Sub class:
class PyWorker(Worker): # {{{
   def __init__(self):
         Worker.__init__(self)
         Worker.run(self)

Here is the error log:
Caused by: java.lang.NoSuchMethodException:
org.python.proxies.script.omega$PyWorker$0.super__run()
       at java.lang.Class.getMethod(Class.java:1581)
       at
org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:168)
       at
org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:183)
       at org.python.core.PyObject.__call__(PyObject.java:359)

Thanks,
Pratibha.
--
View this message in context: http://www.nabble.com/Sub-classing-an-abstract-java-class-tp22558474p22558474.html
Sent from the jython-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Jython-users mailing list
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users