groovy
  1. groovy
  2. GROOVY-4220

Groovy-all-jdk14-1.6.8 fails on Java 1.4 (java/util/concurrent/locks/AbstractQueuedSynchronizer)

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.6.7, 1.6.8
    • Fix Version/s: 1.6.9
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      groovy-all-jdk14-1.6.8.jar fails on Java 1.4.

      The following Java code shows the problem:

      GroovyClassLoader loader = new GroovyClassLoader();
      loader.parseClass("");
      

      This produces the following stack trace:

      java.lang.NoClassDefFoundError: java/util/concurrent/locks/AbstractQueuedSynchronizer
      	at java.lang.ClassLoader.defineClass0(Native Method)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
      	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
      	at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
      	at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
      	at java.lang.ClassLoader.defineClass0(Native Method)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
      	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
      	at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
      	at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
      	at groovyjarjarbackport.java.util.concurrent.ConcurrentHashMap.<init>(ConcurrentHashMap.java:602)
      	at groovyjarjarbackport.java.util.concurrent.ConcurrentHashMap.<init>(ConcurrentHashMap.java:653)
      	at groovyjarjarretroruntime.impl.WeakIdentityTable.<init>(WeakIdentityTable.java:42)
      	at groovyjarjarretroruntime.java.lang.Enum_$1.<init>(Enum_.java:49)
      	at groovyjarjarretroruntime.java.lang.Enum_.<clinit>(Enum_.java:47)
      	at org.codehaus.groovy.transform.ASTTransformationVisitor.addPhaseOperations(ASTTransformationVisitor.java:160)
      	at org.codehaus.groovy.control.CompilationUnit.<init>(CompilationUnit.java:180)
      	at org.codehaus.groovy.control.CompilationUnit.<init>(CompilationUnit.java:117)
      	at groovy.lang.GroovyClassLoader.createCompilationUnit(GroovyClassLoader.java:444)
      	at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:267)
      	at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:250)
      	at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:245)
      	at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:206)
      	at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:216)
      

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Paul King
            Reporter:
            SebbASF
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: