Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-6769

static compiler confused between List.size() and Object.size() method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Incomplete
    • 2.2.2
    • None
    • Static compilation

    Description

      Compiler is complaining about not being able to distinguish List<String>.size() from List<Object>.size

      eference to method is ambiguous. Cannot choose between [int java.util.List <java.lang.String>#size(), int java.util.List <E extends java.lang.Object>#size()]
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            stevel Steve Loughran
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: