gcj producing bad code

Nic Ferrier nferrier@tapsellferrier.co.uk
Sat Apr 6 07:55:00 GMT 2002


Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
> It would be very good to have a bug report in GNATS, expecially if you 
> can come up with a test case. Unfortunately, the source->bytecode 
> compilation is probably the buggiest part of GCJ at present. 

I thought it would be tricky to replicate the problem (the Paperclips
code is quite complex at this point) but in fact the problem is quite
simple to define.
GCJ is not compiling method calls quite right... it seems that all
super invocations are done through invokespecial. invokespecial
cannot be used when the target needs to be called through virtual
dispatch however.
I've submitted a bug with some example code. I'm sorry I don't have
the time to commit to fixing it myself.
Nic


More information about the Java mailing list

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