Consider the following Java class:
package test42;
import java.util.Set;
public class MyService {
public static class MyBean {
public final boolean foo;
public final Set<String> bar;
public final Set<Integer> foobar;
public MyBean() {
this(false, null, null);
}
public MyBean(final boolean foo, final Set<String> bar,
final Set<Integer> foobar) {
this.foo = foo;
this.bar = bar;
this.foobar = foobar;
}
}
}
and the following Groovy class:
package test42
import test42.MyService.MyBean
class Test42 {
void doSomething() {
def b = new MyBean(true, null, null)
}
}
Either from the Groovy class or from the Java class select the test42.MyService.MyBean.MyBean(boolean, Set<String>, Set<Integer>) constructor and invoke Ctrl+Alt+H (Call Hierarchy) or Ctrl+Shift+G (Find References): in both cases, the call from Test42 is not found, only that from test42.MyService.MyBean.MyBean() is.
Consider the following Java class:
and the following Groovy class:
Either from the Groovy class or from the Java class select the
test42.MyService.MyBean.MyBean(boolean, Set<String>, Set<Integer>)constructor and invoke Ctrl+Alt+H (Call Hierarchy) or Ctrl+Shift+G (Find References): in both cases, the call fromTest42is not found, only that fromtest42.MyService.MyBean.MyBean()is.