Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0-beta-1
-
None
Description
In some cases like Groovy classes extending Java classes, inferred generics parameter types could be primitives instead of boxed types:
GroovyPage.java
public class GroovyPage { public final void printHtmlPart(final int partNumber) {} public final void createTagBody(int bodyClosureIndex, Closure<?> bodyClosure) {} }
Child.groovy
class Child extends GroovyPage { void foo() { createTagBody(1) { -> printHtmlPart(2) } } }