Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7900452

JCOV: java.util.EmptyStackException when ec option is 'on' (1.4.0-b90)

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.1
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description



      Name: kbR10066 Date: 01/10/2002


      Starting from JDK1.4.0 build 90 Jcov agent run with ec=on (enable workaround for JVMPI bug 4400212)
      causes java.util.EmptyStackException when trying to profile a simplest program:

      > java -Xrunjcov:ec=on,t=m -cp . HelloWorld
      Exception in thread "main" java.util.EmptyStackException
      at java.util.Stack.peek(Stack.java:79)
      at java.lang.ClassLoader$NativeLibrary.getFromClass(ClassLoader.java:1294)
      at java.lang.ClassLoader$NativeLibrary.find(Native Method)
      at java.lang.ClassLoader.findNative(ClassLoader.java:1502)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)


      This leads to a loss of coverage info for java/lang/ClassLoader$NativeLibrary inner class,
      and changes execution semantics.
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              afedorch Alexey Fedorchenko (Inactive)
              Reporter:
              klooney Kevin Looney (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: