DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16509>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16509

Incorrect usage of context ClassLoader for static field initialization

           Summary: Incorrect usage of context ClassLoader for static field
                    initialization
           Product: Xerces2-J
           Version: 2.3.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Other
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Context ClassLoader is overused in Xerces classes. Initially I found this bug in
Xalan ( see bug #16481 ). Context ClassLoaders are used in some places where
they should not be used (we get unpredictable random initialization).

These are classes where Context ClassLoader should not be used:
org.apache.html.dom.HTMLDocumentImpl, org.apache.xml.serialize.SerializerFactory

Own classloader should be used instead like:
HTMLDocumentImpl.class.getClassLoader(), SerializerFactory.class.getClassLoader()

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to