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

[jtreg] build and test failures using JDK 18

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • jtreg7.6
    • None
    • tools
    • None

      ../src/share/classes/com/sun/javatest/diff/SuperDiff.java:243: warning: [serial] non-transient instance field of a serializable class declared with a non-serializable type
                  platforms.add(platform);
                  ^
      ../src/share/classes/com/sun/javatest/diff/SuperDiff.java:262: warning: [serial] non-transient instance field of a serializable class declared with a non-serializable type
                  infoTable.put(dir.getPath(), new Info(platform, date));
                  ^
      error: warnings found and -Werror specified


      Also, with 18, the security manager issue causes tests to fail: RegressionSecurityManager.java

                  if (v >= 18) {
                      // Do not install any security manager for JDK 18 or later;
                      // see JEP 411: Deprecate the Security Manager for Removal
                      return;
                  }
       As of now, we either get warnings at startup, which can cause issues for some tests, or we avoid the warnings and risk test code calling System.exit.

            jpai Jaikiran Pai
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: