Can not "Run to Method/Line" in anonymous class in default package

Currently it is not possible to jump into methods of inner classes. In the following example I was not able to get into the method "test" of the inner class. Jumping to the method TestB.test() worked fine though:


public class TestInnerClasses {

public static void main(String[] args) {
Test a = new Test() {
@Override
public int test(int a) {
int result = a + 1;
return result;
}

};

Test b = new TestB();

System.out.println(a.test(1));
System.out.println(b.test(1));
}

}

abstract class Test {
abstract public int test(int a);
}

class TestB extends Test{
@Override
public int test(int a) {
int result = a + 1;
return result;
}
}
2 people have
this problem
+1
Reply