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: [EMAIL PROTECTED] (preferred)
[EMAIL PROTECTED]
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.