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

Singleton pattern in DOMImplementationImpl requires a private constructor

           Summary: Singleton pattern in DOMImplementationImpl requires a
                    private constructor
           Product: Xerces2-J
           Version: 2.0.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The Javadoc for DOMImplementationImpl and CoreDOMImplmentationImpl states, " The
DOM API requires that it be a real object rather than static methods. However,
there's nothing that says it can't be a singleton, so that's how I've
implemented it." However, these classes do not in fact implement the singleton
pattern. The default constructor is public. Therefore it is possible to create
new instances of these two classes. Either the JavaDoc comment about singletons
should be deleted or the constructor should be made explicitly private.

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

Reply via email to