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

Generics and joint compilation: method types are not fully respected

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.4
    • Fix Version/s: 1.5.6, 1.6-beta-1
    • Component/s: None
    • Labels:
      None
    • Environment:
      jvm 1.6

      Description

      the groovy file won't compile on JVM 1.6 using joint compilation in the following setup:

      interface.java:

      class Interface{
      List<List<INode> > m();
      }

      impl.groovy:

      class Impl implements Interface {
      List<List<INode> > m()

      { ... }

      }

      when that groovy file is compiled using joint compilation (with some
      other java files), an error happens while compiling temporary java
      file
      /tmp/.../impl.java, where m() returns an incompatible type in "return
      (List<List>) null"

      Walkaround: compile using JVM 1.5

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              yegor Yegor Kozlov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: