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

Regression with generics

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.9
    • 3.0.10
    • Compiler
    • None

    Description

      The following class fails to compile with 3.0.9, but works OK with 3.0.7

      abstract class Test<A, T extends A> {
       }

      The error:

       

      Script370812522650681.groovy: 6: Cycle detected: the type java.lang.Object cannot extend/implement itself or one of its own member types
       @ line 6, column 34.
       abstract class Test<A, T extends A> {
       ^

       

       

      Attachments

        Activity

          People

            emilles Eric Milles
            Schlogen James Kleeh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: