Hi, all
When i try to running groovysh.bat, it will throw ClassCastException[1] with
harmony runtime(classlib+j9vm).
It seems our binarySearch(Object[] array, Object object) will throw the
exception when object does not implement Comparable interface.
While RI works fine. I raise a jira for it[2].
[1] C:\Groovy\bin>groovysh.bat
java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.initialize(J9VMInternals.java:195)
...
Caused by: java.lang.ClassCastException:
java.lang.reflect.Methodincompatible with
java.lang.Comparable
at java.util.Arrays.binarySearch(Arrays.java:365)
at org.codehaus.groovy.reflection.CachedMethod.find(
CachedMethod.java:59)
[2] https://issues.apache.org/jira/browse/HARMONY-5443
--
Sean Qiu