Use mininum jdkSourceLevel of 1.8 for JDK 20+ #23885
Labels
in:Web Components
release bug
This bug is present in a released version of Open Liberty
release:23001
team:Sirius
Projects
Describe the bug
In JDK20, javac has removed support for Java 1.7 compiling. JSP needs an update to the code that checks jdkSourceLevel. Until this is done errors like the following will happen when jdkSourceLevel="17" (meaning Java 1.7) is specified:
com.ibm.ws.jsp.JspCoreException: JSPG0049E: /xxxxxxxxx.jsp failed to compile :
error: Source option 7 is no longer supported. Use 8 or later.
Steps to Reproduce
See above.
Expected behavior
The jdkSourceLevel specified by the user will be overrided to "18" if a lower level is specified, when Java 20 or higher is the runtime.
The text was updated successfully, but these errors were encountered: