Message1451

Author pqu
Recipients
Date 2007-02-14.09:38:02
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Using the SwingWorker backport: https://swingworker.dev.java.net/

The publish method is protected, generic and has a variable number of arguments. Jythonc creates a transient super__publish method. Javac does not like transient methods.

Code sample
========

import  org.jdesktop.swingworker.SwingWorker as SwingWorker

class MySwingWorker(SwingWorker):
    def doInBackground(self):
        # Explicitly creating a list seems to be necessary 
        self.super__publish([""])

Works with jython (does nothing), breaks in jythonc.

jythonc output
=========
[...]
1  ./jpywork/swbug.java:93: modifier transient not allowed here
        public transient void super__publish(java.lang.Object[] arg0) {
[...]

system information
============

Mac OS X 10.4.8
     (Darwin 8.8.1 Darwin Kernel Version 8.8.1: Mon Sep 25 19:42:00 PDT 2006; root:xnu-792.13.8.obj~1/RELEASE_I386 i386)

java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)

        
 
History
Date User Action Args
2008-02-20 17:17:43adminlinkissue1659616 messages
2008-02-20 17:17:43admincreate