This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Don't generate NullPointerExceptions for arraylength and arrayload
>>>>> "Andrew" == Andrew Haley <aph@redhat.com> writes:
Andrew> In general, an aggressively optimising compiler is allowed to remove
Andrew> such loads, but the JLS doesn't permit it.
If we're going to leave this as-is, we should file a PR for it. I
doubt real code ever runs into this case. At the same time, it is
definitely a compliance bug. I don't want us to be lax about
compliance, even though it is inconvenient at times.
Tom