Issue227200

classification
Title: Incorrect code for method returning inner class instance.
Type: Severity: normal
Components: Jythonc compiler Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: bckfnn Nosy List: andv, bckfnn
Priority: normal Keywords:

Created on 2001-01-01.01:50:16 by andv, last changed 2001-01-07.09:12:39 by bckfnn.

Messages
msg237 (view) Author: Arnold deVos (andv) Date: 2001-01-01.01:50:16
The compiler generates incorrect java when overiding a method that returns and instance of an inner class.  

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

public javax.swing.text.AbstractDocument$AbstractElement 
createDefaultRoot() {
        return super.createDefaultRoot();

}
msg238 (view) Author: Finn Bock (bckfnn) Date: 2001-01-01.19:03:18
A quick test shows that the AbstractDocument$AbstractElement syntax is usable with the JDK1.2.1 and the jikes compiler, but not with the JDK1.3 compiler.
msg239 (view) Author: Finn Bock (bckfnn) Date: 2001-01-07.09:12:39
Fixed in proxies.py revision: 2.8;
History
Date User Action Args
2001-01-01 01:50:16andvcreate