diff --git a/src/test/org/apache/commons/lang/NumberUtilsTest.java b/src/test/org/apache/commons/lang/NumberUtilsTest.java index 3e284ba8f..1f4754787 100644 --- a/src/test/org/apache/commons/lang/NumberUtilsTest.java +++ b/src/test/org/apache/commons/lang/NumberUtilsTest.java @@ -66,7 +66,7 @@ import junit.framework.TestSuite; * * @author Rand McNeely * @author Ringo De Smet - * @version $Id: NumberUtilsTest.java,v 1.2 2002/09/15 10:27:56 scolebourne Exp $ + * @version $Id: NumberUtilsTest.java,v 1.3 2002/11/22 23:30:32 bayard Exp $ */ public class NumberUtilsTest extends TestCase { @@ -114,7 +114,11 @@ public class NumberUtilsTest extends TestCase { assertEquals("createNumber(String) 12 failed", new Float("1.1E20"), NumberUtils.createNumber("1.1E20")); assertEquals("createNumber(String) 13 failed", new Double("-1.1E200"), NumberUtils.createNumber("-1.1E200")); assertEquals("createNumber(String) 14 failed", new Double("1.1E-200"), NumberUtils.createNumber("1.1E-200")); - assertEquals("createNumber(String) 15 failed", new BigDecimal("1.1E-700"), NumberUtils.createNumber("1.1E-700F")); + + // jdk 1.2 doesn't support this. unsure about jdk 1.2.2 + if(SystemUtils.isJavaVersionAtLeast(1.3f)) { + assertEquals("createNumber(String) 15 failed", new BigDecimal("1.1E-700"), NumberUtils.createNumber("1.1E-700F")); + } assertEquals( "createNumber(String) 16 failed", new Long("10" + Integer.MAX_VALUE),