-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Issue #5492 - Adding java.features.* start properties #5494
Issue #5492 - Adding java.features.* start properties #5494
Conversation
+ Simplifying alpn start modules in the process. (from 11 to 3) Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
jetty-start/src/main/java/org/eclipse/jetty/start/StartArgs.java
Outdated
Show resolved
Hide resolved
jetty-start/src/main/java/org/eclipse/jetty/start/StartArgs.java
Outdated
Show resolved
Hide resolved
I'm not convinced that we should be using the prefix "java." at all - the System properties set by the jvm use that prefix. Why can't these be "jetty.feature." names, the value of which happens to be based on the version of the jvm. |
…92-java-features-start-properties
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
I changed this to |
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
I would have kept the prefix I don't like I can live with |
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.
See comment -- I'd leave java.feature.*
.
// In Jetty 10+ these will always be true, but still need to stick around for users that | ||
// want to move between Jetty 9.4.x and 10.0.x+ | ||
properties.setProperty("runtime.feature.alpn", Boolean.toString(isMethodAvailable(javax.net.ssl.SSLParameters.class, "getApplicationProtocols", null)), source); | ||
properties.setProperty("runtime.feature.jpms", Boolean.toString(isClassAvailable("java.lang.ModuleLayer")), source); |
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.
*.feature.jpms
is not used, so I would remove it -- no need to leave in the code unnecessary stuff.
…92-java-features-start-properties
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
(from 11 to 3)
Signed-off-by: Joakim Erdfelt joakim.erdfelt@gmail.com