Skip to content

Add quick fix for unimplemented abstract methods in anonymous inner class #654

@eric-milles

Description

@eric-milles

Consider the following:

def entry = new Map.Entry() {
}

Map.Entry is underlined with the error "Groovy:Can't have an abstract method in a non-abstract class. The class 'Script$1' must be declared abstract or the method 'java.lang.Object getValue()' must be implemented."

In the case of a class definition, 2 quick fixes are offered to rectify the situation (see below). In the case of an anonymous inner type, only the quick fix for adding unimplemented methods should be offered. At this time, no quick fixes are given.

quick-fixes

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions