You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2010/03/01 17:52:17 UTC

DO NOT REPLY [Bug 48835] New: StringUtils.parseHumanSizes() should turn parse failures into BuildExceptions

https://issues.apache.org/bugzilla/show_bug.cgi?id=48835

           Summary: StringUtils.parseHumanSizes() should turn parse
                    failures into BuildExceptions
           Product: Ant
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core
        AssignedTo: notifications@ant.apache.org
        ReportedBy: stevel@apache.org


The "human readable" size parser throws NumberFormatException when there is a
problem; this can get wrapped and the root cause lost. 
Better to catch the problem and report it as a BuildException

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

DO NOT REPLY [Bug 48835] StringUtils.parseHumanSizes() should turn parse failures into BuildExceptions

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48835

--- Comment #1 from Steve Loughran <st...@apache.org> 2010-03-01 16:54:16 UTC ---
Created an attachment (id=25074)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25074)
patch for StringUtils

This is the patch I've been using to handle this problem

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

DO NOT REPLY [Bug 48835] StringUtils.parseHumanSizes() should turn parse failures into BuildExceptions

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48835

Steve Loughran <st...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
            Version|unspecified                 |nightly
         Resolution|                            |FIXED

--- Comment #2 from Steve Loughran <st...@apache.org> 2010-10-29 10:07:13 EDT ---
Patched in SVN commit 1028755

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