-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mark,
On 11/9/2009 6:47 PM, Mark Thomas wrote: > Give this a go: > http://svn.apache.org/repos/asf/tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java You gotta love Sun: private static boolean defaultUseCaches = true; ... protected boolean useCaches = defaultUseCaches; ... public void setUseCaches(boolean usecaches) { if (connected) throw new IllegalStateException("Already connected"); useCaches = usecaches; } So, not only do you have to create an instance of this class in order to set the value of a static member (duh!), you also can't change the default under certain circumstances that are local to the instance you're trying to use. Stupid, stupid, stupid. :( - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkr516AACgkQ9CaO5/Lv0PBeKwCdFHKLDklbGes+AdYKx7bWYSNu bmgAn1sHYeTry1cnzu88Vek6Bk4oMzdc =7mhb -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org