There has been some discussion on this list in the past WRT broken enum tests on 1.4 vs 1.3. I am not sure what was decided...
Unfortunately, we did not come to a conclusion. IIRC, this is a platform-specific problem, or actually more accurately put a platform-specific "failure to fail". On Sun Linux JDK 1.4.x, testNestedBroken fails to illustrate the initialization problem that occurs on other platforms. I suggested that we remove this test, but we never got consensus. I think we should remove it.
Phil
Gary
-----Original Message----- From: Janek Bogucki [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 06:28 To: Jakarta Commons Developers List Subject: [lang] build fails on JDK 1.4.1, okay on JDK 1.3.1
With latest CVS '$ ant clean test' fails on JDK 1.4.1. However the tests complete on JDK 1.3.1
Fails with this:
[EMAIL PROTECTED] lang]$ java -version java version "1.4.1_03" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_03-b02) Java HotSpot(TM) Client VM (build 1.4.1_03-b02, mixed mode)
Completes with this:
[EMAIL PROTECTED] lang]$ java -version java version "1.3.1_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_04-b02) Java HotSpot(TM) Client VM (build 1.3.1_04-b02, mixed mode)
Failure message on JDK 1.4.1:
test.enum: [echo] Running enum package tests ... [java] .....................................F.... [java] .................... [java] Time: 0.459 [java] There was 1 failure: [java] 1) testNestedBroken(org.apache.commons.lang.enum.EnumTest)junit.framework.Ass ertionFailedError: expected:<0> but was:<3> [java] at org.apache.commons.lang.enum.EnumTest.testNestedBroken(EnumTest.java:432) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm pl.java:25)
[java] FAILURES!!! [java] Tests run: 61, Failures: 1, Errors: 0
BUILD FAILED file:/home/yan/cvs.apache.org/jakarta-commons/lang/build.xml:149: Java returned: 1
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]