classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Fix For Bug #11545 -- Locale Regression


From: Andrew John Hughes
Subject: [cp-patches] Fix For Bug #11545 -- Locale Regression
Date: Tue, 11 Jan 2005 16:21:15 +0000

I'm committing the following patch which fixes the NullPointerException
being thrown.

2005-01-11  Andrew John Hughes  <address@hidden>

        * java/text/DecimalFormatSymbols.java
        (DecimalFormatSymbols(java.util.Locale)): check for
        errors in setting the currency and default to null and
        empty strings if unavailable
        (setCurrency(Currency)): moved assignment to ensure
        currency is not accidentally set to null
        * java/util/Currency.java
        (Currency(java.util.Locale)): throw IllegalArgumentException
        for empty country string and NullPointerException for null
        locale or country


-- 
Andrew :-)

Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

No software patents in Europe -- http://nosoftwarepatents.com

"Value your freedom, or you will lose it, teaches history.
`Don't bother us with politics' respond those who don't want to learn."
-- Richard Stallman

"We've all been part of the biggest beta test the world has ever known --
Windows"
-- Victor Wheatman, Gartner

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]