RE: [Ikvm-developers] "equals" does not work for enums
Brought to you by:
jfrijters
|
From: Jeroen F. <je...@su...> - 2004-09-09 08:37:45
|
Hi Ilya,
Thanks for reporting this! It will be fixed in the next snapshot (due
this weekend). I also added a regression test to make sure it doesn't
break again.
FYI, the problem was more general than just equals on enums, all calls
to inherited methods on value types caused the compiler to generate
incorrect code.
Regards,
Jeroen
> -----Original Message-----
> From: ikv...@li...=20
> [mailto:ikv...@li...] On=20
> Behalf Of Ilya Perminov
> Sent: Wednesday, September 08, 2004 23:22
> To: ikv...@li...
> Subject: [Ikvm-developers] "equals" does not work for enums
>=20
>=20
> Hello,
>=20
> The following example shows the problem:
>=20
> import cli.System.IO.FileMode;
> public class Test {
> public static void main (String [] args) {
> FileMode open =3D FileMode.wrap (FileMode.Open);
> System.err.println (open.equals (open));
> }
> }
>=20
>=20
> Unhandled Exception: System.NullReferenceException: Object=20
> reference not set to
> an instance of an object.
> at java.lang.Object.instancehelper_equals(Object , Object )
> at Test.main(String[] )
>=20
>=20
> Regards,
> Ilya
>=20
>=20
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=3D5047&alloc_id=3D10808&op=3Dclick
> _______________________________________________
> Ikvm-developers mailing list
> Ikv...@li...
> https://lists.sourceforge.net/lists/listinfo/ikvm-developers
>=20
|