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 alone. But, IMO, we'd better follow RI here. -- Tony Wu China Software Development Lab, IBM