Skip to content

"Override method" code assist: wrong result when generics are involved but unspecified #711

@mauromol

Description

@mauromol

Consider this:

package test36;
public interface MyInterface<I, O> {
	O doSomething(I input);
	O doSomethingElse(I input);
}

And the following Groovy class:

package test36

class Test36 {

	void foo() {
		def i = new MyInterface() {
			|
		}
	}
}

Invoke code assist at "|" and choose to Override method doSomething in MyInterface. The expected result is:

	Object doSomething(Object input) {
		|
	}

The actual result is:

	Object doSomething(Object input) {};|

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions