Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3.7, 2.4.0-beta-3
-
None
Description
Java code
public class Foo<T extends java.io.Serializable> { public void bar(T... args) {} }
Groovy code
@groovy.transform.CompileStatic void test() { new Foo<String>().bar("a") } test()
Error message
Caught: java.lang.NoSuchMethodError: Foo.bar([Ljava/lang/Object;)V java.lang.NoSuchMethodError: Foo.bar([Ljava/lang/Object;)V at test.test(test.groovy:3) at test.run(test.groovy:5)
This happens for these two conditions.
1. Foo is a separate class and is not an inner class of the Groovy code
2. T extends interface
Attachments
Issue Links
- links to