This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiling Regular Expressions | ClassCastException


On 11/07/2013 03:48 PM, Charles Turner wrote:
$ java CompileRegexp "a*b" "aooooob"
Exception in thread "main" java.lang.ClassCastException:
gnu.bytecode.ClassType cannot be cast to java.lang.Class
at gnu.bytecode.ArrayClassLoader.loadClass(ArrayClassLoader.java:138)
at gnu.bytecode.ArrayClassLoader.loadClass(ArrayClassLoader.java:98)
at CompileRegexp.main(CompileRegexp.java:132)

I'm struggling to understand why that's happening in the
ArrayClassLoader. Any thoughts? Is this bug? I tried running against
Kawa version 1.12 for kicks, but the same result.

It looks like this bug was introduced 2008-05-10.
I cleaned and simplified the code.  It should now work.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]