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

Groovyc ant task fails with nested javac when using generics

    XMLWordPrintableJSON

Details

    Description

      Unzip the attached project and run the "compile" ant target. The following error is given:

      Compile error during compilation with javac.
      C:\DOCUME~1\bborcha\LOCALS~1\Temp\groovy-generated-3979570706073693155-java-source\test\MyGroovyClass.java:18: incompatible types
      found : java.lang.String
      required: T
      public static <T extends java.lang.String> T getLast(java.util.List<T> list)

      { return (java.lang.String)null;}

      This error did not occur on groovy 1.8.6 or earlier versions and is preventing us from upgrading.

      Attachments

        1. GroovyGenericsBug.zip
          13 kB
          Brett Borchardt

        Activity

          People

            guillaume Guillaume Sauthier
            bborchardt Brett Borchardt
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: