Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix #11902 undeprecate addHiddenClasses(Attributes, String...) #11903

Merged

Conversation

janbartel
Copy link
Contributor

@janbartel janbartel commented Jun 11, 2024

Fixes #11902

Due to the current implementation of the JettyXmlConfiguration favouring methods with interface args, this means that the deprecated method addHiddenClasses method is in fact always called, leading to this log line during jetty startup:

2024-06-09 13:09:20,602 - WARN [org.eclipse.jetty.xml.XmlConfiguration:800] - Deprecated method public static void org.eclipse.jetty.ee.WebAppClassLoading.addHiddenClasses(org.eclipse.jetty.util.Attributes,java.lang.String[]) in file:///opt/jetty/etc/jetty-ee-webapp.xml

The real fix is to modify JettyXmlConfiguration to change the ordering in which it considers the methods to apply, and #11895 has been opened for that. That fix is risky, so therefore, the quickest route to removing this unnessary log line is to simply undeprecate the method.

@janbartel janbartel requested review from olamy and gregw June 11, 2024 01:21
@janbartel janbartel self-assigned this Jun 11, 2024
Copy link
Contributor

@gregw gregw left a comment

Choose a reason for hiding this comment

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

This is OK, but before merging can you update the PR description to say why this is being done and that further work is being proposed for a later release so that we can deprecate in future.

@janbartel janbartel merged commit 9d0a457 into jetty-12.0.x Jun 12, 2024
10 of 11 checks passed
@joakime joakime deleted the jetty-12.0.x-11902-undeprecate-addHiddenClasses branch June 27, 2024 19:39
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
No open projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Un-deprecate WebAppClassLoading.addHiddenClasses(Attributes attributes, String... patterns) method
3 participants