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

jtreg rerun script needs to support bootlib

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • jt4.1
    • tools
    • None

      Run jtreg for java/util/stream/test/org/openjdk/tests/java/util/stream/FilterOpTest.java
      (jtreg 4.1 fcs b07 built 8/11/2013)

      Extract the rerun script (many thanks!) from the .jtr file
      Clean up \\ and newlines.

      run bash rerun.sh

      1. Problem1 : Error: Could not find or load main class com.sun.javatest.regtest.MainWrapper
      workaround: add jtreg.jar to the -Xbootclasspath/a

      2. Problem2: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/javatest/util/StringArray at com.sun.javatest.regtest.MainWrapper.main(MainWrapper.java:56)
      workaround: add javatest.jar to -Xbootclasspath/a

      3. Problem 3: java.lang.ClassNotFoundException: org/openjdk/tests/java/util/stream/FilterOpTest at java.lang.Class.forNAme0 ...
      workaround: add $DST/work/classes/java/util/stream/test to -Xbootclasspath/a

      note: these were all already in the classpath, but bootlib is in the bootclasspath in the initial script, so searches from there can't find classes via the classpath. The rerun script makes a huge difference in being able to debug vm issues in these tests, so we very much appreciate it, and appreciate the additional fixes so it will work with all the tests.

            jjg Jonathan Gibbons
            acorn Karen Kinnear (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: