You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Ceki Gülcü <cg...@qos.ch> on 2001/03/29 10:44:35 UTC
AdaptiveClassLoader.toString()
Hello,
In Tomcat 3.2, the toString() method in org.apache.tomcat.loader.AdaptiveClassLoader class is as follows:
public String toString() {
return "AdaptiveClassLoader( )";
}
For this method to be more informative, I suggest:
public String toString() {
StringBuffer sbuf = new StringBuffer();
sbuf.append("AdaptiveClassLoader(");
sbuf.append(generation);
sbuf.append(")");
return sbuf.toString();
}
The generation information is important as it indicates whether the loader has changed. The code in TC 4.0 is apparently completely different... Best regards, Ceki
--
Ceki Gülcü Web: http://qos.ch
email: cgu@qos.ch (preferred)
ceki_gulcu@yahoo.com
I hope to see you at my ApacheCon 2001 presentation
entitled "Log4j, A Logging Package for Java".
See http://ApacheCon.Com/2001/US/ for more details.