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

Joint compiler fails when function has array of objects parameter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.8.6, 2.2.2, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7
    • None
    • None
    • linux x86-64
      oracle jdk 1.6.0.45

    Description

      When groovy class implements java interface located in other package with method returning array of java objects (not primitive), joint compilation fails with org.codehaus.groovy.control.MultipleCompilationErrorsException

      Running joint compiler again compiles this groovy class successfully.

      Attached file contains example files and script to run groovyc in joint compiler mode.
      Run ./joint-compile.sh - MultipleCompilationErrorsException
      Run it again - success.

      To reproduce please remove created *.class files
      Reproduced - always.

      Workaround: add package name of returned java class to groovy method

          public foo.JavaDataObject[] ...
      

      Attachments

        1. groovy-joint-compiler-bug-again.tar
          10 kB
          Pascal Schumacher

        Activity

          People

            Unassigned Unassigned
            pschumacher Pascal Schumacher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: