:
The instance may be cast to a subclass. ClassLoader subclasses frequently have undesirable methods.
Guideline 9-8 explains access checks made on acquiring ClassLoader instances through various Java library methods. Care should be taken when exposing a class loader through the thread context class loader.