Message1451
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)
|
|
Date |
User |
Action |
Args |
2008-02-20 17:17:43 | admin | link | issue1659616 messages |
2008-02-20 17:17:43 | admin | create | |
|