Skip to content
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

New JSP option javaSourceLevel #18359

Closed
wants to merge 1 commit into from

Conversation

epj
Copy link
Contributor

@epj epj commented Aug 27, 2021

see #25494

@epj epj added in:Web Components release bug This bug is present in a released version of Open Liberty team:Sirius labels Aug 27, 2021
@epj epj self-assigned this Aug 27, 2021
@LibbyBot
Copy link

Code analysis and actions

DO NOT DELETE THIS COMMENT.
  • 6 product code files were changed.

  • Please describe in a separate comment how you tested your changes.

  • 1 test infrastructure code files were changed.

  • Test failures/errors in the build could be due to these changes.

@epj epj force-pushed the 7183-javaSourceLevel branch 3 times, most recently from 9b3107e to 1f5cd4f Compare October 6, 2021 18:09
useJavaSourceLevel = Integer.parseInt(rawJavaSourceLevel);
} catch(NumberFormatException e) {
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.INFO)) {
logger.logp(Level.INFO, CLASS_NAME, "populateOptions", "Invalid value for javaSourceLevel = " + rawJavaSourceLevel + ".");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This INFO message should be translated.

if (javaSourceLevel > jmv) {
// can not specify higher than running Java
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.INFO)) {
logger.logp(Level.INFO, CLASS_NAME, "setJavaSourceLevel", "Requested javaSourceLevel=" + javaSourceLevel +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also needs translation

@@ -1618,6 +1649,7 @@ public String toString() { //overrride Object's toString to assist in debugging.
"ieClassId = [" + ieClassId +"]"+separatorString+
"isZOS = [" + isZOS +"]"+separatorString+
"javaEncoding = [" + javaEncoding +"]"+separatorString+
"javaSourceLevel = [" + javaSourceLevel +"]"+separatorString+
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Translate and also try to come up with a better message for:

logger.logp(Level.INFO, CLASS_NAME, "setJdkSourceLevel", "Requested jdkSourceLevel=" + jdkSourceLevel + 
                            ", but forcing to 17 because it is the min supported by Java 12+");

@epj epj force-pushed the 7183-javaSourceLevel branch 2 times, most recently from 57711fe to 6731d7e Compare April 19, 2023 17:21
@epj epj force-pushed the 7183-javaSourceLevel branch from 6731d7e to 4b1e32f Compare April 19, 2023 17:32
@volosied volosied self-assigned this Apr 19, 2023
@volosied
Copy link
Member

closed in favor of #25494

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed in:Web Components release bug This bug is present in a released version of Open Liberty team:Sirius
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants