Wrong code generation

Michael Koch konqueror@gmx.de
Tue Mar 18 14:42:00 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
The attached testcase produces wrong bytecode when compiled with gcj.
When compiled and run with Sun's JDK it prints "Michael". ;-)
When compiled with gcj and run with Sun's java it prints:
Exception in thread "main" java.lang.VerifyError: (class: InvokeTest, 
method: test signature: ()V) Illegal use of nonvirtual function call
(Thats a testcase I made for a bug found when bootstrapping ant 1.5.2)
Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+dzB7WSOgCCdjSDsRAhuUAJ9ULhlp4fQI5vde1TIdgeuWt2ZQVACfT+Sj
zD6Zvl0obokiB7iCFLBTQjA=
=R7/7
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: InvokeTest.java
Type: text/x-java
Size: 385 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20030318/750f5ee5/attachment.bin>


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /