Consider this:
package test42
class GBean {
GBean() {}
GBean(String foo, String bar = 'hello') {}
void doSomething() {}
void doSomething(String foo, String bar = 'bar') {}
}
And this:
package test42;
class Test43 {
void test() {
def b2 = new GBean('foo')
b2.doSomething()
b2.doSomething('foo')
b2.doSomething('foo', 'bar')
}
}
Put the cursor over test42.GBean.doSomething() and hit Ctrl+Alt+H: it finds both b2.doSomething() and b2.doSomething('foo'), while it should find only the former.
Please note that b2.doSomething('foo') is (correctly) found also when requesting Call Hiearchy for test42.GBean.doSomething(String, String).
Consider this:
And this:
Put the cursor over
test42.GBean.doSomething()and hit Ctrl+Alt+H: it finds bothb2.doSomething()andb2.doSomething('foo'), while it should find only the former.Please note that
b2.doSomething('foo')is (correctly) found also when requesting Call Hiearchy fortest42.GBean.doSomething(String, String).