|
From: <no...@so...> - 2001-01-07 09:09:44
|
Bug #127201, was updated on 2000-Dec-31 17:58
Here is a current snapshot of the bug.
Project: Jython
Category: Jythonc compiler
Status: Closed
Resolution: Fixed
Bug Group: None
Priority: 5
Submitted by: andv
Assigned to : bckfnn
Summary: Generated code overides final methods.
Details: 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
Follow-Ups:
Date: 2001-Jan-07 01:09
By: bckfnn
Comment:
Fixed in proxies.py revision 2.7;
-------------------------------------------------------
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=127201&group_id=12867
|