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)
}
}
}
Activity
Cedric Champeau
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
In some cases like Groovy classes extending Java classes, inferred generics parameter types could be primitives instead of boxed types:
{code:GroovyPage.java} public class GroovyPage { public final void printHtmlPart(final int partNumber) {} public final void createTagBody(int bodyClosureIndex, Closure<?> bodyClosure) {} } {code} {code:Child.groovy} class Child extends GroovyPage { void foo() { createTagBody(1) { -> printHtmlPart(2) } } } {code} |
In some cases like Groovy classes extending Java classes, inferred generics parameter types could be primitives instead of boxed types:
{code:title=GroovyPage.java} public class GroovyPage { public final void printHtmlPart(final int partNumber) {} public final void createTagBody(int bodyClosureIndex, Closure<?> bodyClosure) {} } {code} {code:title=Child.groovy} class Child extends GroovyPage { void foo() { createTagBody(1) { -> printHtmlPart(2) } } } {code} |
Cedric Champeau
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Paul King
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |