Community
Participate
Working Groups
3.2 RC2 The javadoc for CharOperation.camelCaseMatch(char[], int, int, char[], int, int) is not clear about the semantics of the indices, and the given examples are wrong. The javadoc for the index parameters should state that the start index is inclusive (index of the first pattern/name character) and the end index exclusive (index of the first character past the end of the pattern/name). The examples state a pattern range of [1,3) for ['N', 'P', 'E'], which is wrong, as it should be [0, 3). The examples state a pattern range of [1,3) for ['N', 'u', 'P', 'o', 'E', 'x'], which is wrong, as it should be [0, 6). I will attach a patch.
Created attachment 40458 [details] CharOperation.java.diff Javadoc patch against CharOperation.java R1.72
I will also fix SearchPattern corresponding string methods. I don't think we'll ask for a rebuild for this, but I guess this at least will be put for RC4...
Philippe, Do you think it could be changed for 3.2 or we postpone this doc change for 3.3?
Doc change is fine for RC4.
Thanks Tom for the patch. 've also applied your change in SearchPattern duplicated method. Released in HEAD.
Verified with I20060511-2000 for 3.2RC4