Skip to content

Default parameters: wrong Call Hiearchy results found for method call #773

@mauromol

Description

@mauromol

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).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions