Details
-
Sub-task
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.1.6
-
None
-
None
Description
class Parent { def invokeMethod(String name, args) { [name: name, args: args] } def m(String a) { "m" } } def s = new Parent() assert s.m("1") == "m" assert s.m(1) == [name: "m", args: [1]] class Container { static class Parent { def invokeMethod(String name, args) { [name: name, args: args] } def m(String a) { "m" } } } s = new Container.Parent() assert s.m("1") == "m" // so far, so good⦠// Blows up: // Caught: groovy.lang.MissingMethodException: No signature of method: static Container.m() is applicable for argument types: (java.lang.Integer) values: [1] assert s.m(1) == [name: "m", args: [1]]
Seems related to GROOVY-5875 (which has a waiting pull request)
Attachments
Issue Links
- is related to
-
GROOVY-5875 Cannot use DELEGATE_FIRST and delegates that are inner classes.
- Closed