OSDN Git Service

Throw IllegalArgumentException if Currency.getInstance is given an invalid currency...
authorElliott Hughes <enh@google.com>
Sat, 13 Feb 2010 00:51:53 +0000 (16:51 -0800)
committerElliott Hughes <enh@google.com>
Sat, 13 Feb 2010 00:51:53 +0000 (16:51 -0800)
commit4562a70fdfa38139a7e73efc2fc44e275c49d3f6
treed825d5b768e5d81b4cfde0480cd10d110e3d8e12
parenta1f820df3a46f25e6b6f0c3ea9ce9ff5bde04ba0
Throw IllegalArgumentException if Currency.getInstance is given an invalid currency code.

This fixes an existing harmony DecimalFormatSymbolsTest failure, but I've added
an explicit test for clarity (and to reduce the likelihood of regression).
libcore/luni/src/main/java/java/util/Currency.java
libcore/luni/src/test/java/java/util/CurrencyTest.java