|
From: <php...@li...> - 2008-12-28 13:06:52
|
Sounds like a bug/problem in gcc/gcj ("GNU Java").
Here's the relevant part from Sam Ruby's coerce/select:
else if (c == Integer.TYPE) result[i]=new Integer(s);
When methods are invoked through reflection, Java automatically coerces an Integer to a primitive int. The code is more than 6 years old, so that I am pretty sure that it worked with Java 1.4. Since 1.5 Java this behaviour is documented (autoboxing/-unboxing).
Please either use a real Java VM or compile your Java classes with GNU gcc >= 4.2, which implements the Java 1.5 spec.
I will add this requirement (gcc >= 4.2) to the README.GCJ.
Regards,
Jost Bökemeier
|