Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0.7
-
None
Description
The STC appears unable to see the property accessor for a nested class.
@CompileStatic class Example { static class Profile { String name } Map<String, Profile> PROFILES = [new Profile()] .stream() .collect(toMap(Profile::getName, identity())) }
Groovy:Failed to find class method 'getName(Example$Profile)' or instance method 'getName()' for the type: Example$Profile