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

Test SourceLauncherTest.java fails with option -XX:+FlightRecorder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • 25
    • 25
    • tools
    • None
    • generic
    • generic

      Test tools/javac/launcher/SourceLauncherTest.java fails run with JVM option -XX:+FlightRecorder.

      The test log snippet:
      stderr:
      exception:
      java.lang.Error: zero!
              at Thrower.throwWhenZero(Thrower.java:7)
              at Thrower.throwWhenZero(Thrower.java:8)
              at Thrower.throwWhenZero(Thrower.java:8)
              at Thrower.throwWhenZero(Thrower.java:8)
              at Thrower.main(Thrower.java:4)


      test: testNoDuplicateIncubatorWarning
      [STDERR]:
      OpenJDK 64-Bit Server VM warning: Option FlightRecorder was deprecated in version 13.0 and will likely be removed in a future release.
      WARNING: Using incubator modules: test
      Error: Unexpected warning in error output: OpenJDK 64-Bit Server VM warning: Option FlightRecorder was deprecated in version 13.0 and will likely be removed in a future release.
      WARNING: Using incubator modules: test

      [DIRECT]:
      - compiler.warn.incubating.modules: test
      1 warning

      32 tests, 1 errors
      java.lang.Exception: 1 errors found
              at toolbox.TestRunner.runTests(TestRunner.java:119)
              at SourceLauncherTest.main(SourceLauncherTest.java:70)


      Related tests:
      tools/javac/launcher/SourceLauncherTest.java
      tools/javac/modules/RequiresStaticTest.java

            syan Sendao Yan
            syan Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: