Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-beta-1
-
Fix Version/s: 2.0-beta-2
-
Component/s: Static Type Checker
-
Labels:None
-
Number of attachments :
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)
}
}
}