-
Notifications
You must be signed in to change notification settings - Fork 600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create new JSP option javaSourceLevel #25494
Create new JSP option javaSourceLevel #25494
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
L2 message review not required |
dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/tools/AbstractJspModC.java
Outdated
Show resolved
Hide resolved
b6de95f
to
51b4f28
Compare
c627317
to
1522813
Compare
d6df827
to
fde3f3c
Compare
#build |
Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_W5Zr0CTWEe6G1PEnFHKlyw Target locations of links might be accessible only to IBM employees. |
The build volosied-25494-20230717-1323 For help analyzing your personal build, go to https://libh-proxy1.fyre.ibm.com/cognitive/buildAnalysis.html?uuid=_W5Zr0CTWEe6G1PEnFHKlyw |
fde3f3c
to
cc022d6
Compare
dev/com.ibm.ws.jsp/resources/com/ibm/ws/jsp/resources/messages.nlsprops
Outdated
Show resolved
Hide resolved
c4cbf06
to
b0c14c8
Compare
#build |
Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_vrBhgCZ6Ee6G1PEnFHKlyw Target locations of links might be accessible only to IBM employees. |
dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/compiler/utils/JspFileManager.java
Outdated
Show resolved
Hide resolved
dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/tools/AbstractJspModC.java
Outdated
Show resolved
Hide resolved
fb7180e
to
3a7fd55
Compare
Java 2 Sec Build: https://wasrtc.hursley.ibm.com:9443/jazz/web/projects/WS-CD#action=com.ibm.team.build.viewResult&id=_pXEDoKmhEe6mAvAMVOSgKw Build is good, but one warning was missed:
Updated this PR. |
3a7fd55
to
b277eea
Compare
#build |
Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_v8xBgKo_Ee6mAvAMVOSgKw Target locations of links might be accessible only to IBM employees. |
The build volosied-25494-20240103-0704 For help analyzing your personal build, go to https://libh-proxy1.fyre.ibm.com/cognitive/buildAnalysis.html?uuid=_v8xBgKo_Ee6mAvAMVOSgKw |
dev/com.ibm.ws.jsp/resources/com/ibm/ws/jsp/resources/messages.nlsprops
Outdated
Show resolved
Hide resolved
b277eea
to
9d463cd
Compare
8c6fc97
to
0672649
Compare
#libby |
1 similar comment
#libby |
Code analysis and actionsDO NOT DELETE THIS COMMENT.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor changes suggested for messages.nlsprops. I'll add the ID reviewed label now.
jsp.useinmemory.warning=CWWJS0004W: The 'useInMemory' JSP Option is not supported. The JSPs will be compiled and saved on disk instead. | ||
jsp.useinmemory.warning.explanation=This feature was never ported from Traditional WebSphere for historical reasons. | ||
jsp.useinmemory.warning.useraction=Remove the useInMemory option from the server.xml, ibm-web-bnd.xml, or the ibm-web-ext.xmi files. | ||
|
||
pages.removed.element.error=CWWJS0005E: The {0} element was removed in Pages 4.0 and therefore is no longer supported. | ||
pages.removed.element.error.explanation=The jsp plugin and related actions were deprecated in Pages 3.1 and removed in 4.0. | ||
pages.removed.element.error.useraction= Remove the jsp plugin, fallback, and params elements from your web app. | ||
|
||
jsp.javasourcelevel.warning=CWWJS0006W: The specified javaSourceLevel={0} value exceeds the {1} installed Java level. Therefore, the default Java level is set to {1}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The warning and explanation would be better if they started with "The"
- "The {0} value..."
- "The file cannot ..."
jsp.javasourcelevel.warning.explanation=File cannot be compiled with a higher source than the available JDK level. | ||
jsp.javasourcelevel.warning.useraction=Specify a javaSourceLevel value that is less than or equal to the available JDK level. | ||
|
||
jsp.bothsourcelevelset.warning=CWWJS0007W: Both javaSourceLevel={0} and jdkSourceLevel={1} are specified. Defaulting to javaSourceLevel={0} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put a period after the ending {0} unless the result would be confusing.
jsp.javasourcelevel.warning.useraction=Specify a javaSourceLevel value that is less than or equal to the available JDK level. | ||
|
||
jsp.bothsourcelevelset.warning=CWWJS0007W: Both javaSourceLevel={0} and jdkSourceLevel={1} are specified. Defaulting to javaSourceLevel={0} | ||
jsp.bothsourcelevelset.warning.explanation= Only one source level attribute can be used at a time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the space after the = in the warning, explanation, and useraction unless the space is needed. Other messages don't have the space.
Also, use one space between sentences in the useraction.
PR taken from Evan Jenning's #18359.
Current behavior:
The JSP option jdkSourceLevel takes JDK compile level as a string without the decimal. When Liberty is running with up to Java 11, accepted values are "13", "14", "15", "16", "17" and "18" (which represent JDK versions 1.3, 1.4, 1.5, 1.6, 1.7 and 1.8 respectively). Specify anything else and it defaults back to "13". When Liberty is running with Java 12 or higher, the accepted values are "17" and "18".
This change will deprecate jdkSourceLevel, so it will be used to only specify one of "13", "14", "15", "16", "17" and "18". Further, the new JSP parameter javaSourceLevel will be introduced to specify the Java level from 8 on up to the current running Java level (both "8" and "1.8" will be accepted for Java 8 compile level).
Fixes #7183, #20538, #25494, #18169 and #27171