tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38579] - Tomcat nulling internal state of objects referenced by static finals
Date Thu, 09 Feb 2006 04:47:13 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38579>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38579





------- Additional Comments From matt.dev@llmj.com  2006-02-09 05:47 -------
I did some research this evening and found out that, sure enough, Java 5 allows
instance final fields to be overwritten but does NOT allow this for static final
fields.  Therefore my suggestion of simply overwriting the static final
reference will not work.

I made some modifications to the cleanup code in WebappClassLoader.java, which
cause it to only nullify fields of descended-into objects if they refer to
objects of classes which were loaded by 'this' class loader or one of its
children (if it has any.)  I am attaching the modified source file.  Please take
a look at it and see if it still achieves the desired effect with respect to
Tomcat's cleanup process.  I am new to class loader debugging.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message