-
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
New JSP option javaSourceLevel #18359
Conversation
Code analysis and actionsDO NOT DELETE THIS COMMENT.
|
9b3107e
to
1f5cd4f
Compare
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 + "."); |
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.
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 + |
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.
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+ |
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.
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+");
57711fe
to
6731d7e
Compare
6731d7e
to
4b1e32f
Compare
closed in favor of #25494 |
see #25494