groovy
  1. groovy
  2. GROOVY-5172

Inferred generics parameter types could contain primitive types

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major 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 :
      0

      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

        No work has yet been logged on this issue.

          People

          • Assignee:
            CÚdric Champeau
            Reporter:
            CÚdric Champeau
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: