Hi Tony,

I agree that the current implementation handles digits incorrectly. So
+1 for fixing decapitalize() and following RI. Thanks for finding it.

Thanks,

2006/10/30, Tony Wu <[EMAIL PROTECTED]>:
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.

--
Alexei Zakharov,
Intel Enterprise Solutions Software Division

Reply via email to