Enabling building with Java 8

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@1589637 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=56369
Ensure that removing an MBean notification listener reverts all the operations performed when adding an MBean notification listener.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@1589638 13f79535-47bb-0310-9956-ffa450edef68
Avoid memory leak and add small optimisation to default Servlet

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@1589640 13f79535-47bb-0310-9956-ffa450edef68