This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Compiling Regular Expressions | ClassCastException
- From: Per Bothner <per at bothner dot com>
- To: Charles Turner <chturne at gmail dot com>, Kawa mailing list <kawa at sourceware dot org>
- Date: Thu, 07 Nov 2013 21:47:13 -0800
- Subject: Re: Compiling Regular Expressions | ClassCastException
- Authentication-results: sourceware.org; auth=none
- References: <CAPMhJv0KDCvV5wJgLOaRfNqnzoxemCKsHAS=21Ypqi+u7+xYuw at mail dot gmail dot com>
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/