Thu Apr 1 00:10:00 GMT 2004
>>>>> "Cedric" == Cedric Berger <email@example.com> writes:
Cedric> I don't know how effective that would be, but that's pretty easy to
Cedric> create bad bytecode mechanically. For example, just just take correct
Cedric> bytecode, and then run it (uncompressed) through something like that
Cedric> Then the resulting bugcode could be fed to both GCJ and Sun's
Cedric> verifier for comparaisons.
Unfortunately Sun's verifier and ours reject and accept different
code. The deal is, "invalid bytecode" is not perfectly well defined.
Instead, there are restrictions in the JVM Spec which are basically
incoherent. It doesn't look easy to write a verifier which behaves
the same as Sun's, particularly considering that theirs has changed
More information about the Java