Java: fix Array_3 byte compiler failures
Per Bothner
per@bothner.com
Thu Sep 26 10:33:00 GMT 2002
Andrew Haley wrote:
> The test case Array_3.java (compilation from bytecode) has been
> failing for a while. It turns out that we can't compile `aconst_null;
> arraylength' because build_java_array_length_access() insists that its
> arg is of type array, whereas null_pointer_node is of type (void *).
Why not just test for pointer_type_node? Or just null_pointer_node?
Actually, I think it would be cleaner to fix the tree representation.
The type of '(Object[]) null' should presumably be 'Object[]', not
'void*'. I.e. folding '(Object[]) null' to 'null' is I suspect wrong.
Are we stripping off a NOP_EXPR we shouldn't be?
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/
More information about the Java
mailing list