Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid reference detected by Call Hierarchy #373

Closed
mauromol opened this issue Nov 7, 2017 · 2 comments
Closed

Invalid reference detected by Call Hierarchy #373

mauromol opened this issue Nov 7, 2017 · 2 comments
Labels

Comments

@mauromol
Copy link

mauromol commented Nov 7, 2017

Consider the following two Groovy classes:

package test6

class Foo {
  URL doSomething(String s, URL u) {
  }
  
  URL doSomething(Integer i, URL u) {
  }
}

And:

package test6

class Test6 {
	
	Foo foo = new Foo()
	
	void bar() {
		URL u = new URL('www.example.com')
		foo.doSomething('ciao', u)
	}
}

As you can see with F2 or F3 over the call of doSomething() on foo, Greclipse correctly detects that the call references Foo.doSomething(String, URL). However, if you put the cursor over Foo.doSomething(Integer, URL) and you press Ctrl+Alt+H (Call Hierarchy), you'll see that a reference from Test6.bar() is detected, which is not the case indeed.

@eric-milles
Copy link
Member

ready to test

@mauromol
Copy link
Author

Hi Eric, I tested this with 2.9.2.xx-201711262138-e46 and it works correctly now! Thank you! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants