Partly for historical reasons, we still compile jtreg with JDK 8 by default.
If you attempt to use JDK 11, you get a bunch of warnings, which become fatal with -Werror of course.
After fixing the warnings, there's the file that gets patched into java.base which needs be handled separately with JDK 9+.
After fixing the compilation, some tests fail, typically because of code that relies on JDK8-era features, such as the bootclasspath. For now, these tests are converted to only run when using JDK 8.
If you attempt to use JDK 11, you get a bunch of warnings, which become fatal with -Werror of course.
After fixing the warnings, there's the file that gets patched into java.base which needs be handled separately with JDK 9+.
After fixing the compilation, some tests fail, typically because of code that relies on JDK8-era features, such as the bootclasspath. For now, these tests are converted to only run when using JDK 8.