harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Qiu" <sean.xx....@gmail.com>
Subject [classlib] run groovysh.bat of groovy 1.5 will throw ClassCastException
Date Wed, 30 Jan 2008 09:04:36 GMT
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
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:195)
Caused by: java.lang.ClassCastException:
java.lang.reflect.Methodincompatible with
        at java.util.Arrays.binarySearch(Arrays.java:365)
        at org.codehaus.groovy.reflection.CachedMethod.find(

[2] https://issues.apache.org/jira/browse/HARMONY-5443

Sean Qiu

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message