Skip to content

Wrong completion for constructor code on a generic class #346

@mauromol

Description

@mauromol

This was the old GRECLIPSE-1761:

Consider the following Java class:

package m; public class JavaClass<T extends Number> { }

And the following Groovy class:

package m 

class M { 
	JavaClass<Integer> foo = new JavaCl| 
} 

Invoke code assist at "|" and choose the first suggestion.
The expected behaviour is to get either new JavaClass<Integer>() or new JavaClass<>().
What I get instead is: new JavaClass<Number>().

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions