Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.6.2
-
None
-
None
Description
org.apache.axis2.wsdl.databinding.CUtils has method isCKeyword which assumes that CUtils.keywords is sorted array.
However CUtils.keywords is not sorted array and therefore Arrays.binarySearch fails for example with keyword "friend" (possibly depends on Java version/implementation used).
It seems that originally CUtils.keywords contained only a short list of C/C++ keywords in sorter array but later there was added list of Microsoft C++ compiler's keywords, which contains also duplicates from previous list of keywords, but overall result is that full array is no longer sorted.
Here is a JUinit test for you which fails currently if it helps:
@Test
public void test() {
for (String kw : CUtils.keywords)
}