Message1558

Author mr_tines
Recipients
Date 2007-04-16.19:12:12
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Encountered while doing a class-by-class port of a Java app to Jython using Jython 2.2b1

* Backplane.py

from java import lang # see report 1701719 about the use of this idiom

class Backplane(lang.Object):
  def performSetup(self, arg):
    "@sig public void performSetup(java.lang.String arg)"
    self.arg = arg

Generate class file with "jythonc -p test Backplane.py"

* UseBackplane.py

import test

backplane = test.Backplane()
backplane.performSetup("test")

Run with "jython UseBackplane.py"
Traceback (innermost last):
  File "UseBackplane.py", line 4, in ?
AttributeError: abstract method "performSetup" not implemented

But it's clearly there in the intermediate Java file

History
Date User Action Args
2008-02-20 17:17:47adminlinkissue1701729 messages
2008-02-20 17:17:47admincreate