Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.1
-
None
-
macOS Catalina
Version: 10.15.3
Description
It looks like the default getter for a property is not picked up by the @Delegate. For example the below code:
interface Foo { String getName() } class Bar { String name } class FooImpl implements Foo { @Delegate(includes = "getName") Bar bar }
throws a compile-time error as:
1 compilation error: Error during @Delegate processing: 'includes' property or method 'getName' does not exist. at line: 10, column: 5
Please note that I have also tested with the latest 3.0.2-SNAPSHOT.
Attachments
Issue Links
- relates to
-
GROOVY-9289 @Delegate should check property/method names for annotation attributes like includes/excludes
- Closed