This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libjava doesn't build with new cp/*
>>>>> "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