This is the mail archive of the
mailing list for the GCC project.
Re: [committed] allow assert in inner class
Per> non-jls-jsr41.3-runtime-2 "Asserts do not cause class initialization"
Per> (which is in jacks/tests/runtime/non-jls/assert/tests.tcl).
Per> The test case does work work when compiling to native, but
Per> fails when compiling to bytecode. However, JDK 1.4.2 fails
Per> in the same manner, and there is something to be said for
I don't know about this specific case, but there are other situations
where the JDK erroneously causes class initialization and which Sun
has agreed are bugs. `foo.class' is the one I know about. I'm sure
Eric Blake knows more.
Per> Presumably we should mark this as a Jacks XFAIL; could someone
Per> with a Jacks account do that?
Jacks xfails are handled by our test harness, see
libjava/testsuite/libjava.jacks/jacks.xfail. Jacks itself has no
notion of xfail, afaik.