Skip to content

Constructor call of nested class not found by neither call hierarchy nor find references #765

@mauromol

Description

@mauromol

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions