Skip to content

Wrong navigation for constructor call #1103

@mauromol

Description

@mauromol

Consider the project attached to #1090 and its MyBean class, but use this test class instead:

package test61

import java.util.function.BiConsumer

import org.hibernate.Session
import org.hibernate.SessionFactory
import org.hibernate.criterion.DetachedCriteria
import org.hibernate.criterion.Order

class Test66 {

	SessionFactory shopSessionFactory
	
	void foo() {
		def b = new MyBean(shopSessionFactory, bar('a', 'b', 'c'), [Order.asc('foo'), Order.asc('bar')], ['a', 'b'], 
			{} as BiConsumer<Session, ? super List>)
	}

	DetachedCriteria bar(String a, String b, String d) {
		
	}
}

If you click on MyBean word inside the foo() method and hit F3, you're brought to test61.MyBean.MyBean(SessionFactory, DetachedCriteria, Order...) constructor, while you should be brought to test61.MyBean.MyBean(SessionFactory, DetachedCriteria, List<Order>, Map<String, ? extends Iterable<String>>, BiConsumer<Session, ? super T>).

Call Hierarchy and Search for References for the latter constructor, though, are correct, so it seems to be just an issue with navigation.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions