Summary: | ApplicationListener#pluggabilityBlocked field is always "false" in Tomcat 8 | ||
---|---|---|---|
Product: | Tomcat 8 | Reporter: | Konstantin Kolinko <knst.kolinko> |
Component: | Catalina | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 8.0.8 | ||
Target Milestone: | ---- | ||
Hardware: | PC | ||
OS: | All |
Description
Konstantin Kolinko
2014-06-04 12:46:07 UTC
The feature isn't broken. The original fix included a test that still passes. It works because all listeners added via ServletContext.addListener() are blocked from using pluggability features. I agree there is some unused code we can remove. Fixed in 8.0.x for 8.0.9 onwards. Ack. I see. In StandardContext.listenerStart() the listeners that have been already configured before (via ServletContext API) are added to 'noPluggabilityListeners' set. That does the trick. I updated deprecation markers on o.a.c.Context methods in Tomcat 7 in r1600638. It will be in 7.0.55. |