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

Generics: within a single declaration, generic type definition order matters

    Details

      Description

      The following is valid Java code, but the groovyc fails complaining
      unable to resolve class X

      public class Foo<T extends List<X>, X extends Number>{}
      

      while changing the generic type definition order it works

      public class Foo<X extends Number, T extends List<X>>{}
      

        Attachments

          Activity

            People

            • Assignee:
              daniel_sun Daniel Sun
              Reporter:
              davide.cavestro Davide Cavestro
            • Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: