Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update String#contentEquals(java.lang.CharSequence)
Currently String#contentEquals(java.lang.CharSequence) implementation only handles if the bytes in the String value are UTF16 encoded. If not it throws an assertion error like the following: [junit] java.lang.AssertionError: Currently only UTF16 is supported for String comparision with an instance of type AbstractStringBuilder [junit] at java.lang.String.contentEquals(String.java:275) [junit] at gov.nasa.jpf.test.java.lang.StringTest.testContentEquals(StringTest.java:301) [junit] at java.lang.reflect.Method.invoke(gov.nasa.jpf.vm.JPF_java_lang_reflect_Method) [junit] at gov.nasa.jpf.util.test.TestJPF.runTestMethod(TestJPF.java:648) This updates String#contentEquals(java.lang.CharSequence) method, so it handles both LATIN1 and UTF16 encoded Strings.
- Loading branch information