Created attachment 23358 [details] Patch file to replace new Booleans with primitive version While reviewing the source code, I noticed that java\org\apache\catalina\core\StandardContext.java code is creating Boolean objects unnecessarily. For example: support.firePropertyChange("antiJARLocking", new Boolean(oldAntiJARLocking), new Boolean(this.antiJARLocking)); is instantiating Boolean objects when there is already a version of firePropertyChange that accepts boolean primitives. So, the above can be rewritten to avoid instantiating new objects like: support.firePropertyChange("antiJARLocking", oldAntiJARLocking, this.antiJARLocking); This pattern was repeated for numerous properties. I took the liberty of creating a patch.
Thanks for the patch. This has been applied to trunk and proposed for 6.0.x.
This has been fixed in 6.0.x and will be included in 6.0.20 onwards. Thanks again for the patch.