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

Grails fails to build with JDK 1.6 (Error starting modern compiler)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.5.6
    • Fix Version/s: 1.5.7
    • Component/s: None
    • Labels:
      None
    • Environment:
      Mac, JDK 1.6

      Description

      Grails (using joint groovyc build) fails to compile using JDK 1.6 and I have to downgrade to JDK 1.5 for it to work. Error is:

      build:checkj5:
          [echo] Building Java 5 code for Java version: 1.6
      
      build:java5:
         [javac] Compiling 2 source files to
      /Users/mark/Development/grails/svn/target/classes
         [javac] Note: Some input files use unchecked or unsafe operations.
         [javac] Note: Recompile with -Xlint:unchecked for details.
      
      build-test:
       [groovyc] Compiling 358 source files to
      /Users/mark/Development/grails/svn/target/test-classes
         [javac] Compiling 394 source files to
      /Users/mark/Development/grails/svn/target/test-classes
       [groovyc]
      
      BUILD FAILED
      /Users/mark/Development/grails/svn/ant/build/unit-test.xml:57: Error
      starting modern compiler
      

        Attachments

        1. stacktrace.txt
          13 kB
          Ryan Brush

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              graemerocher Graeme Rocher
            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: