Skip to content

Argument names missing in code assist proposals for implementing missing methods #394

@mauromol

Description

@mauromol

This was the old GRECLIPSE-1473.

Consider the following Java interface:

package test;

public interface I {
	void myMethod(String a, int b);
}

And the following Groovy class:

package test

class A implements I {
	|
}

Invoke code assist at "|": the following two proposals are shown:

  • myMethod(String arg0, int arg1): void - Override method in 'I'
  • equals(Object param0): boolean - Override method in 'Object'

I would expect to see, instead:

  • myMethod(String a, int b): void - Override method in 'I' (actually, it should be "implement missing method", but it's not that important)
  • equals(Object obj): boolean - Override method in 'Object'

If you accept one of those proposals, though, the result is correct (thanks to the old fix for GRECLIPSE-1347).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions