commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Akerman (JIRA)" <>
Subject [jira] Created: (COLLECTIONS-350) MapUtils.getNumber sends output to System.out
Date Fri, 15 Jan 2010 16:36:54 GMT
MapUtils.getNumber sends output to System.out

                 Key: COLLECTIONS-350
             Project: Commons Collections
          Issue Type: Bug
    Affects Versions: 3.2
            Reporter: Michael Akerman
            Priority: Minor
             Fix For: 4.0-beta-1, 4.0, 4.x, 3.2

MapUtils.getNumber calls "logInfo" on a ParseException and it produces output on the System.out,
instead of just returning "null" as the documentation states.

Since the expected behavior is to return null, *not* print to System.out.  I recommend we
remove the call to logInfo and/or remove the System.out.println inside it.

At minimum, if that's not agreed upon, the "side-effect" of writing to System.out should be

I'm happy to offer code for either of these fixes.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message