When the key is null (i.e., a stale entry), it cannot be removed with an explicit...
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 12 Feb 2010 03:19:31 +0000 (03:19 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 12 Feb 2010 03:19:31 +0000 (03:19 +0000)
commit52965614744fca2bee6cad3ddac853e910c3cd84
tree622197d8dd6c13985b89b64f43149d3faf30c795
parent62e0aca709e7f93d484ab3730fbac95ef1d59235
When the key is null (i.e., a stale entry), it cannot be removed with an explicit remove(key) call: you'll get an NPE. Those can be removed with expungeStaleEntries() call.
Also, simplified the code: Reference.referent can be accessed by calling get() - no need to use reflection for that.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@909212 13f79535-47bb-0310-9956-ffa450edef68
java/org/apache/catalina/loader/WebappClassLoader.java