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

http://issues.apache.org/bugzilla/show_bug.cgi?id=35467

           Summary: System.err.println statement should be removed
           Product: XmlCommons
           Version: 1.x
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Resolver
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Libraries such as the Apache ResolvingXMLReader should not talk to the user. In
particular they should not print things on System.err and Systsem.out unless
speciifcally told to do so. The following fragment in CatalogManager.java is at
issue:

        if (!ignoreMissingProperties) {
          System.err.println("Cannot find "+propertyFile);
          // there's no reason to give this warning more than once
          ignoreMissingProperties = true;
        }

I didn't call this class directly. My code used ResolvingXMLReader. Presumably
ResolvingXMLReader called into CatalogManager somehow. In this case, if the
XMLReader that is calling CatalogManager has a configured SAX ErrorHandler, then
this message should be sent as a warning through that ErrorHandler by invoking
its warning() method. If that XMLReader does not have such an ErrorHandler, then
this message should be dropped.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to