Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.5.2.Release
-
Fix Version/s: None
-
Component/s: Inferencing Engine
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
From within a closure or an anonymous inner class, I have a call to an inherited public method. The call is underlined.
I expected the call not to be underlined in the three cases below.
class MySuper {
public void insuper(String msg) { println msg }
}
class MySub extends MySuper {
public static void main(String[] args) {
new MySub().foo()
}
public void foo() {
Runnable work = new Runnable() {
@Override public void run() {
// The lines below are underlined; expected them not to be
insuper("1")
MySub.this.insuper("2")
}
}
[1].each {
// same here: line below is underlined; expected it not to be
insuper("3")
}
work.run()
}
}
Executing the above writes out what you'd expect: 1, 2 and 3.
I may have duplicated this bug in
GRECLIPSE-1266. Weird timing