- 
    Type:
Bug
 - 
    Resolution: Fixed
 - 
    Priority:
  P3                     
     - 
    Affects Version/s: None
 - 
    Component/s: 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.
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.
- relates to
 - 
                    
JDK-8199704 Ability to intercept or disable System::exit
-         
     - Closed
 
 -         
 
- links to
 - 
                    
        
        Commit(master)
        openjdk/jtreg/857ed616
    
 - 
                    
        
        Review(master)
        openjdk/jtreg/190