harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jimmy,Jing Lv" <firep...@gmail.com>
Subject Re: [classlib] run groovysh.bat of groovy 1.5 will throw ClassCastException
Date Wed, 30 Jan 2008 09:34:44 GMT
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 <sean.xx.qiu@gmail.com>:
> 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

Mime
View raw message