From: <no...@so...> - 2001-01-01 01:58:27
|
Bug #127201, was updated on 2000-Dec-31 17:58 Here is a current snapshot of the bug. Project: Jython Category: Jythonc compiler Status: Open Resolution: None Bug Group: None Priority: 5 Submitted by: andv Assigned to : nobody 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 For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=127201&group_id=12867 |