Message1556

Author mr_tines
Recipients
Date 2007-04-16.18:58:45
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Using Jython 2.2b1, this form of import

import java
import java.lang

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

does not provoke the generation of the performSetup() method; you have to do the import as a "from", like this

from java import lang

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

in order to generate the public method in the enclosing class.
History
Date User Action Args
2008-02-20 17:17:47adminlinkissue1701719 messages
2008-02-20 17:17:47admincreate