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=17853>.
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=17853

DocumentBuilder returns a Document that is not thread safe

           Summary: DocumentBuilder returns a Document that is not thread
                    safe
           Product: Xerces2-J
           Version: 2.0.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When a document is constructed using:

Document document =
    DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(file);

The document object returned is a non-thread-safe DeferredDocumentImpl object.

I can find no references in documentation warning against this. Generally I have
an expectation that a Document object will be at the very least read-only
threadsafe.

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

Reply via email to