Message240

Author andv
Recipients
Date 2001-01-01.01:58:25
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The compiler generates incorrect java that overides a final method. 

For example. If jython class Log inherits javax.swing.text.PlainDocument we get this code: 

public javax.swing.text.Position getEndPosition() {
PyObject inst = Py.jgetattr(this, "getEndPosition");
return (javax.swing.text.Position)Py.tojava(inst._jcall(new Object[] {}), "javax.swing.text.Position");
}

which produces this error from javac:

.\jpywork\au\com\Langdale\Anti.java:606: getEndPosition() in au.com.Langdale.Anti.Log cannot override getEndPosition() in javax.swing.text.AbstractDocument; overridden method is final
History
Date User Action Args
2008-02-20 17:16:47adminlinkissue227201 messages
2008-02-20 17:16:47admincreate