Archie Cobbs wrote: > Mark Wielaard wrote: > > Maybe we can again special case that security check by doing a > > this.getClass().getClassLoader() == null? > > Hmmm, no, that doesn't work since getClassLoader() will trigger a > > security check. Nasty... > > That's what VMStackWalker.getClassLoader() is for... you could use it.
I considered that, but it is a little less safe than the approach I took, because if in the future a new subclass of CharsetProvider is added to the API, the calling class loader check would succeed if a user provider subclassed this new subclass. Regards, Jeroen _______________________________________________ Classpath mailing list [email protected] http://lists.gnu.org/mailman/listinfo/classpath

