harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov" <alexei.zakha...@gmail.com>
Subject Re: [classlib][beans]got a difference with RI
Date Mon, 30 Oct 2006 11:11:44 GMT
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 <wuyuehao@gmail.com>:
> 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

Mime
View raw message