harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Wu" <wuyue...@gmail.com>
Subject [classlib][beans]got a difference with RI
Date Mon, 30 Oct 2006 06:21:33 GMT
this testcase passed on RI but failed on Harmony

public class TestBeans extends TestCase {
    public void test() {
        String expected = "a1";
        String actual = java.beans.Introspector.decapitalize("A1");
        assertEquals(expected, actual);

spec does not mention the case containing a number, it says,
in the (unusual) special case when there is more than one character
and both the first and second characters are upper case, we leave it

But, IMO, we'd better follow RI here.

Tony Wu
China Software Development Lab, IBM

View raw message