Hi,

     It seems a little bug on comparing, and the fix looks fine.
Please go ahead :)
     Perhaps there's some similar bugs in java.util.Arrays/Collections
etc, we may enrich our testcase.

2008/1/30, Sean Qiu <[EMAIL PROTECTED]>:
> 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
>


-- 

Best Regards!

Jimmy, Jing Lv
China Software Development Lab, IBM

Reply via email to