Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6988106

javac report 'java.lang.IllegalMonitorStateException'

    Details

    • Subcomponent:
    • Resolved In Build:
      b130
    • CPU:
      x86
    • OS:
      linux
    • Verification:
      Verified

      Description

      FULL PRODUCT VERSION :
      Icedtea interpreted mode (openjdk 1.6.0_20)

      ADDITIONAL OS VERSION INFORMATION :
      Linux server02 2.6.15 #148 SMP Thu Sep 16 14:27:28 CST 2010 alpha GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      root [ bin ]# cat Hello.java
      public class Hello {
              public static void main(String[] args)
              {
                      System.out.println("Hello World.");
              }
      }
      root [ bin ]# ./javac Hello.java
      An exception has occurred in the compiler (1.6.0_20). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
      java.lang.IllegalMonitorStateException
              at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:155)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1262)
              at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:459)
              at com.sun.tools.javac.zip.ZipFileIndex.getZipFileIndex(ZipFileIndex.java:145)
              at com.sun.tools.javac.util.JavacFileManager.openArchive(JavacFileManager.java:653)
              at com.sun.tools.javac.util.JavacFileManager.listDirectory(JavacFileManager.java:342)
              at com.sun.tools.javac.util.JavacFileManager.list(JavacFileManager.java:926)
              at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2092)
              at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1795)
              at com.sun.tools.javac.code.Symbol.complete(Symbol.java:400)
              at com.sun.tools.javac.comp.Enter.visitTopLevel(Enter.java:291)
              at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:454)
              at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:252)
              at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:266)
              at com.sun.tools.javac.comp.Enter.complete(Enter.java:474)
              at com.sun.tools.javac.comp.Enter.main(Enter.java:459)
              at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:895)
              at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:797)
              at com.sun.tools.javac.main.Main.compile(Main.java:380)
              at com.sun.tools.javac.main.Main.compile(Main.java:306)
              at com.sun.tools.javac.main.Main.compile(Main.java:297)
              at com.sun.tools.javac.Main.compile(Main.java:82)
              at com.sun.tools.javac.Main.main(Main.java:67)


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      get 'Hello.class' from 'Hello.java' by 'jvac'
      ACTUAL -
      An exception has occurred in the compiler (1.6.0_20).

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      An exception has occurred in the compiler (1.6.0_20). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
      java.lang.IllegalMonitorStateException
              at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:155)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1262)
              at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:459)
              at com.sun.tools.javac.zip.ZipFileIndex.getZipFileIndex(ZipFileIndex.java:145)
              at com.sun.tools.javac.util.JavacFileManager.openArchive(JavacFileManager.java:653)
              at com.sun.tools.javac.util.JavacFileManager.listDirectory(JavacFileManager.java:342)
              at com.sun.tools.javac.util.JavacFileManager.list(JavacFileManager.java:926)
              at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2092)
              at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1795)
              at com.sun.tools.javac.code.Symbol.complete(Symbol.java:400)
              at com.sun.tools.javac.comp.Enter.visitTopLevel(Enter.java:291)
              at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:454)
              at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:252)
              at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:266)
              at com.sun.tools.javac.comp.Enter.complete(Enter.java:474)
              at com.sun.tools.javac.comp.Enter.main(Enter.java:459)
              at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:895)
              at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:797)
              at com.sun.tools.javac.main.Main.compile(Main.java:380)
              at com.sun.tools.javac.main.Main.compile(Main.java:306)
              at com.sun.tools.javac.main.Main.compile(Main.java:297)
              at com.sun.tools.javac.Main.compile(Main.java:82)
              at com.sun.tools.javac.Main.main(Main.java:67)

      ---------- END SOURCE ----------

      SUPPORT :
      YES

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jjg Jonathan Gibbons
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: