jtreg tests fail with openjdk 25

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: tools
    • None

      When running tests with OpenJDK 25 they fail with the following error:

      ----
      bash ./make/build.sh test
      ....
      /home/vladimirp/git/jtreg/build/images/jtreg/bin/jtreg \
      -w:/home/vladimirp/git/jtreg/build/test/PolicyTest/work -r:/home/vladimirp/git/jtreg/build/test/PolicyTest/report \
      -jdk:/usr/lib/jvm/java-25-openjdk-amd64 \
      -agentvm \
      -retain:all \
      ../test/policy/ \
      > /home/vladimirp/git/jtreg/build/test/PolicyTest/jt.log
      Error: Some tests failed or other problems occurred.
      make: *** [../test/policy/PolicyTest.gmk:32: /home/vladimirp/git/jtreg/build/test/PolicyTest.ok] Error 2

      ---

      Retrying tests produces the output:
      ---
      java.lang.Error: A command line option has attempted to allow or enable the Security Manager. Enabling a Security Manager is not supported.
              at java.lang.System.initPhase3(java.base@25.0.2/System.java:1969)
      ----

            Assignee:
            Unassigned
            Reporter:
            Vladimir Petko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: