Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.6.1.Release
-
Fix Version/s: None
-
Component/s: Content Assist, Editor
-
Labels:None
-
Number of attachments :
Description
Related to GRECLIPSE-1347 but regarding innser/anonymous classes.
Try this:
package greclipse1347 class B { void test() { I myvar = new I(){ my| } } }
Invoke code completion after my and accept the proposal of myMethod (by the way, it wasn't immediately visible to me, maybe I had to save the file for the proposal to show the first time... I don't know exactly). This is what is inserted for me:
void myMethod(String arg0, int arg1) {};
Not only argument names are missing, but there is the semicolon after the closing bracket and the code isn't formatted (i.e.: opening and closing brackets on the same line, no comments about auto generations, etc.).
Another strange thing is that if you place the cursors inside new I()
{ ... }and you don't use contents assist at "my|" to implement the missing method, but you try to invoke right click -> Source -> Override/implement methods, it seems like it isn't recognized that I am inside the definition of an I instance, since the only methods I can select in the "Override/Implement methods" window are those of java.lang.Object.
There are several bugs relating to inner classes that are open. I'm going to tag them all so they are easier to keep track of.