Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-JSR-6
-
None
-
invoking Java code from Groovy on both Linux and MS Windows
Description
We have two Java classes: ChildClass and its super class ParentClass. Both have a static method get(). The get() method of ParentClass returns of course a parent class and the one of ChildClass a ChildClass. As static methods are not inherited this is ok with the java specification.
Trying to invoke ChildClass.get() in groovy, however, throws a NoSuchMethodError: games.stendhal.test.groovy.ParentClass.get()Lgames/stendhal/test/groovy/ChildClass;
For some strange reason groovy tries to invoke ParentClass.get() instead of ChildClass.get() but with the method signature of ChildClass.
Exspected result invoking of ChildClass.get()
Please see attached simplyfied test case.
Attachments
Attachments
Issue Links
- is depended upon by
-
GROOVY-1381 new MOP implementation task
- Closed