You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xml-commons-dev@xerces.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2026/03/25 14:49:00 UTC
[jira] [Commented] (XMLCOMMONS-37) System.err.println statement should be removed
[ https://issues.apache.org/jira/browse/XMLCOMMONS-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18068332#comment-18068332 ]
Elliotte Rusty Harold commented on XMLCOMMONS-37:
-------------------------------------------------
surprisingly still an issue 20 years later
> System.err.println statement should be removed
> ----------------------------------------------
>
> Key: XMLCOMMONS-37
> URL: https://issues.apache.org/jira/browse/XMLCOMMONS-37
> Project: XML Commons
> Issue Type: Bug
> Components: XML Commons Resolver
> Affects Versions: XML Commons Resolver 1.1.0
> Environment: Operating System: other
> Platform: Other
> Reporter: elharo
> Priority: Minor
>
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: xml-commons-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: xml-commons-dev-help@xerces.apache.org