libjava doesn't build with new cp/*

Tom Tromey tromey@redhat.com
Fri Sep 5 20:00:00 GMT 2003


>>>>> "Gabriel" == Gabriel Dos Reis <gdr@integrable-solutions.net> writes:

Gabriel> Still, this looks like an obscure code.  It should probably
Gabriel> be written with one of the new-style cast operator so that,
Gabriel> now, it appears crystal-clear to everybody what it does.

Yeah, if I had known this code existed, I would have changed it long
ago.  lvalue casts -- yuck.

I checked in this code yesterday, instead:

    peer = reinterpret_cast< ::java::awt::peer::ComponentPeer *> (w);

(Really no cast is "necessary", except that g++/CNI doesn't know about
java interfaces.)

Tom



More information about the Gcc mailing list