-
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
Move ClassMatcher to core to have a consistent fix for addServerClasses in all environments #11566
Conversation
…ior for ee10/ee9/ee8
…dserverclasses-ee9-gw
jetty-core/jetty-ee/src/main/java/org/eclipse/jetty/ee/WebappProtectedClasses.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-ee/src/main/java/org/eclipse/jetty/ee/WebappProtectedClasses.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-ee/src/main/java/org/eclipse/jetty/ee/WebappProtectedClasses.java
Outdated
Show resolved
Hide resolved
Ya know, this |
jetty-core/jetty-ee/src/main/java/org/eclipse/jetty/ee/WebappProtectedClasses.java
Outdated
Show resolved
Hide resolved
Renaming to Hidden/Protected
How vital for 12.0.8 is this fix? Could we punt to 12.0.9 so we can get the naming and locations right. |
Not vital, we can punt this to 12.0.9 easily. |
# Conflicts: # jetty-ee10/jetty-ee10-webapp/src/main/java/org/eclipse/jetty/ee10/webapp/WebAppContext.java
jetty-core/jetty-ee/src/main/java/org/eclipse/jetty/ee/WebappClassLoading.java
Outdated
Show resolved
Hide resolved
…lassLoading.java Co-authored-by: Jan Bartel <[email protected]>
@joakime does this PR work for your cross context dispatch testing? |
@joakime @janbartel Can we get this reviewed and merged as a priority? |
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.
A lot of signature changes (in methods and fields), new names partially introduced but not consistently across the use cases, deprecations on the wrong things (deprecating new signatures, but not keeping the old signatures and deprecating them)
jetty-core/jetty-util/src/main/java/org/eclipse/jetty/util/ClassVisibilityChecker.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-util/src/main/java/org/eclipse/jetty/util/ClassVisibilityChecker.java
Outdated
Show resolved
Hide resolved
jetty-ee10/jetty-ee10-webapp/src/main/java/org/eclipse/jetty/ee10/webapp/WebAppContext.java
Outdated
Show resolved
Hide resolved
jetty-ee10/jetty-ee10-webapp/src/main/java/org/eclipse/jetty/ee10/webapp/WebAppContext.java
Outdated
Show resolved
Hide resolved
jetty-ee10/jetty-ee10-webapp/src/main/java/org/eclipse/jetty/ee10/webapp/WebAppContext.java
Outdated
Show resolved
Hide resolved
jetty-ee9/jetty-ee9-webapp/src/main/java/org/eclipse/jetty/ee9/webapp/WebAppContext.java
Outdated
Show resolved
Hide resolved
...y-ee9/jetty-ee9-webapp/src/main/java/org/eclipse/jetty/ee9/webapp/AbstractConfiguration.java
Outdated
Show resolved
Hide resolved
@@ -17,6 +17,7 @@ | |||
import java.util.Collections; | |||
import java.util.ServiceLoader; | |||
|
|||
import org.eclipse.jetty.util.ClassMatcher; |
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 changes the signatures of methods using ClassMatcher
as input or return.
Also, the naming change of server/system to hidden/protected hasn't been performed here yet
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.
I don't want to change ee9 naming more than necessary.
...e10/jetty-ee10-webapp/src/main/java/org/eclipse/jetty/ee10/webapp/AbstractConfiguration.java
Outdated
Show resolved
Hide resolved
jetty-ee10/jetty-ee10-webapp/src/main/java/org/eclipse/jetty/ee10/webapp/Configuration.java
Outdated
Show resolved
Hide resolved
@janbartel @joakime nudge! |
1 similar comment
@janbartel @joakime nudge! |
@gregw It's looking good, I pushed 2 small commits to cleanup other things I noticed. |
Restored methods that were removed in WebAppClassLoader.Context. Fixed method signatures for deprecated method -- they must take the deprecated ClassMatcher, not the newly introduced one. Signed-off-by: Simone Bordet <[email protected]>
* Addendum to #11566. Restored methods that were removed in WebAppClassLoader.Context. Fixed method signatures for deprecated method -- they must take the deprecated ClassMatcher, not the newly introduced one. Signed-off-by: Simone Bordet <[email protected]>
Updated to use a common ClassMatcher and to support customization of default, server, environment or context