commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <joerg.schai...@gmx.de>
Subject Re: Lang 2.3 problems Was: [VOTE] Lang 2.3 (RC2)
Date Fri, 09 Feb 2007 19:58:35 GMT
Hi Hen,

Henri Yandell wrote:

> On 2/8/07, Jörg Schaible <joerg.schaible@gmx.de> wrote:
[snip]
>>
>> It seems that we cannot format correctly also if the JDK fails. :-/
> 
> Ack :(
> 
> What kind of environment are you in? timezone/platform/jdk version/locale?

CET/Gentoo Linux/Sun JDK 1.5.0_10/de_DE

Same with Sun JDK 1.6.0, Sun JDK 1.4.2_11, Blackdown JDK 1.4.2_3, IBM JDK
1.4.2_5, IBM JDK 1.5.0_3, JRockit 1.4.2_11 and JRockit 1.5.0_6.

Additionally my JDK zoo reveiled more failing tests. The following tests
fail additionally with IBM JDK 1.4.2_5 (one 'anormality' with this JDK is,
that the fields returned by reflection are in reverse declaration order, if
the class was compiled with this JDK):

============= %< ==============
Testsuite: org.apache.commons.lang.builder.BuilderTestSuite
Tests run: 263, Failures: 8, Errors: 0, Time elapsed: 0,451 sec

Testcase:
testReflectionHierarchyHashCode(org.apache.commons.lang.builder.HashCodeBuilderTest):
FAILED
expected:<11785967> but was:<1276487>
junit.framework.AssertionFailedError: expected:<11785967> but was:<1276487>
        at
org.apache.commons.lang.builder.HashCodeBuilderTest.testReflectionHierarchyHashCode(HashCodeBuilderTest.java:166)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)


Testcase:
testReflectionHashCodeExcludeFields(org.apache.commons.lang.builder.HashCodeBuilderTest):
FAILED
expected:<862547> but was:<865283>
junit.framework.AssertionFailedError: expected:<862547> but was:<865283>
        at
org.apache.commons.lang.builder.HashCodeBuilderTest.testReflectionHashCodeExcludeFields(HashCodeBuilderTest.java:480)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)


Testcase:
testReflectionHierarchyArrayList(org.apache.commons.lang.builder.ToStringBuilderTest):
FAILED
expected:<...elementData={<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>},size=0...>
but
was:<...size=0,elementData={<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>}...>
junit.framework.ComparisonFailure:
expected:<...elementData={<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>},size=0...>
but
was:<...size=0,elementData={<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>,<null>}...>
        at
org.apache.commons.lang.builder.ToStringBuilderTest.testReflectionHierarchyArrayList(ToStringBuilderTest.java:327)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)


Testcase:
testReflectionHierarchy(org.apache.commons.lang.builder.ToStringBuilderTest):
FAILED
expected:<...a=a,transientA=t...> but was:<...transientA=t,a=a...>
junit.framework.ComparisonFailure: expected:<...a=a,transientA=t...> but
was:<...transientA=t,a=a...>
        at
org.apache.commons.lang.builder.ToStringBuilderTest.testReflectionHierarchy(ToStringBuilderTest.java:338)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)


Testcase:
testSelfInstanceTwoVarsReflectionObjectCycle(org.apache.commons.lang.builder.ToStringBuilderTest):
FAILED
expected:<...typeIsSelf=org.apache.commons.lang.builder.ToStringBuilderTest$SelfInstanceTwoVarsReflectionTestFixture@5b6022ad,otherType=The
Other Type...> but was:<...otherType=The Other
Type,typeIsSelf=org.apache.commons.lang.builder.ToStringBuilderTest$SelfInstanceTwoVarsReflectionTestFixture@5b6022ad...>
junit.framework.ComparisonFailure:
expected:<...typeIsSelf=org.apache.commons.lang.builder.ToStringBuilderTest$SelfInstanceTwoVarsReflectionTestFixture@5b6022ad,otherType=The
Other Type...> but was:<...otherType=The Other
Type,typeIsSelf=org.apache.commons.lang.builder.ToStringBuilderTest$SelfInstanceTwoVarsReflectionTestFixture@5b6022ad...>
        at
org.apache.commons.lang.builder.ToStringBuilderTest.testSelfInstanceTwoVarsReflectionObjectCycle(ToStringBuilderTest.java:543)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)


Testcase:
testSimpleReflectionStatics(org.apache.commons.lang.builder.ToStringBuilderTest):
FAILED
expected:<...String=staticString,staticInt=12345...> but
was:<...Int=12345,staticString=staticString...>
junit.framework.ComparisonFailure:
expected:<...String=staticString,staticInt=12345...> but
was:<...Int=12345,staticString=staticString...>
        at
org.apache.commons.lang.builder.ToStringBuilderTest.testSimpleReflectionStatics(ToStringBuilderTest.java:859)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)


Testcase:
testReflectionStatics(org.apache.commons.lang.builder.ToStringBuilderTest):
FAILED
expected:<...staticString=staticString,staticInt=12345,instanceString=instanceString,instanceInt=67890...>
but
was:<...instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString...>
junit.framework.ComparisonFailure:
expected:<...staticString=staticString,staticInt=12345,instanceString=instanceString,instanceInt=67890...>
but
was:<...instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString...>
        at
org.apache.commons.lang.builder.ToStringBuilderTest.testReflectionStatics(ToStringBuilderTest.java:878)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)


Testcase:
testInheritedReflectionStatics(org.apache.commons.lang.builder.ToStringBuilderTest):
FAILED
expected:<...String2=staticString2,staticInt2=67890...> but
was:<...Int2=67890,staticString2=staticString2...>
junit.framework.ComparisonFailure:
expected:<...String2=staticString2,staticInt2=67890...> but
was:<...Int2=67890,staticString2=staticString2...>
        at
org.apache.commons.lang.builder.ToStringBuilderTest.testInheritedReflectionStatics(ToStringBuilderTest.java:897)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
============= %< ============

Here it seems that the this IBM JDK throws a different exception than the
JDK docs document ... and unfortunately one only available in JDK 1.4.

============= %< ============
Testsuite: org.apache.commons.lang.LangTestSuite
Tests run: 644, Failures: 0, Errors: 1, Time elapsed: 5,375 sec

------------- Standard Output ---------------

------------- ---------------- ---------------
Testcase: testNotSupported(org.apache.commons.lang.CharEncodingTest):   Caused
an ERROR
 
java.nio.charset.IllegalCharsetNameException:  
        at java.nio.charset.Charset.checkName(Charset.java:305)
        at java.nio.charset.Charset.lookup(Charset.java:439)
        at java.nio.charset.Charset.forName(Charset.java:477)
        at java.lang.StringCoding$DecoderCache.makeDecoder(StringCoding.java:109)
        at java.lang.StringCoding$1.run(StringCoding.java:155)
        at java.security.AccessController.doPrivileged1(Native Method)
        at java.security.AccessController.doPrivileged(AccessController.java:351)
        at java.lang.StringCoding$DecoderCache.getDecoder(StringCoding.java:152)
        at java.lang.StringCoding.getDecoder(StringCoding.java:304)
        at java.lang.StringCoding.decode(StringCoding.java:383)
        at java.lang.String.<init>(String.java:740)
        at java.lang.String.<init>(String.java:766)
        at org.apache.commons.lang.CharEncoding.isSupported(CharEncoding.java:146)
        at
org.apache.commons.lang.CharEncodingTest.testNotSupported(CharEncodingTest.java:71)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
============= %< ============

While IBM JDK 1.5.0_3 fails (it seems it reports for GB more languages than
Enlish only ... Welsh, Scottish?):

============= %< ============
Testsuite: org.apache.commons.lang.LangTestSuite
Tests run: 644, Failures: 1, Errors: 0, Time elapsed: 9,8 sec

------------- Standard Output ---------------

------------- ---------------- ---------------
Testcase: testLanguagesByCountry(org.apache.commons.lang.LocaleUtilsTest):
FAILED
expected:<1> but was:<2>
junit.framework.AssertionFailedError: expected:<1> but was:<2>
        at
org.apache.commons.lang.LocaleUtilsTest.assertLanguageByCountry(LocaleUtilsTest.java:404)
        at
org.apache.commons.lang.LocaleUtilsTest.testLanguagesByCountry(LocaleUtilsTest.java:434)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
============= %< ============

Out of curiosity I simply had to investigate, it is cy_GB i.e. Welsh :)


The general question is, to what extent we should support non-Sun JDKs as
well especially if they are not conforming as IBM 1.4.2 ... it least for
this release we can ignore the additional issues IMHO.


>> BTW: What happened with the navigation?
>> http://people.apache.org/~joehni/navi.gif
> 
> ApacheCon advert by the look of it. I'm guessing however its done,
> isn't supported in your browser?

Does not work in Konqueror 3.5.5, CSS for the leftColumn:

div#leftColumn {
 color: #000;
 background-color: #eee;
 margin-left: 0px;
 margin-top: 0px;
 border-right: 1px solid #aaa;
 border-bottom: 1px solid #aaa;
 border-top: none;
 border-left: none;
 width: 150px;
 
background-image:url(http://www.apache.org/ads/ApacheCon/2007-europe-125x125.png);
 background-repeat: no-repeat;
 background-position: 50% 1%;
}

Is fine for Opera and FF.

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message