harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Imran Ghory (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4671) [text] DecimalFormat readObject contains dead code
Date Wed, 22 Aug 2007 23:52:31 GMT
[text] DecimalFormat  readObject contains dead code
---------------------------------------------------

                 Key: HARMONY-4671
                 URL: https://issues.apache.org/jira/browse/HARMONY-4671
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Imran Ghory


The following branch can never get executed as no integer can be greater than Integer.MAX_VALUE:

        if (super.getMaximumIntegerDigits() > Integer.MAX_VALUE
                || super.getMinimumIntegerDigits() > Integer.MAX_VALUE
                || super.getMaximumFractionDigits() > Integer.MAX_VALUE
                || super.getMinimumIntegerDigits() > Integer.MAX_VALUE) {
            // text.09=The deserialized date is invalid
            throw new InvalidObjectException(Messages.getString("text.09")); //$NON-NLS-1$
        }

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


Mime
View raw message