This is the mail archive of the
mailing list for the GCC project.
Re: libjava doesn't build with new cp/*
>>>>> "Gabriel" == Gabriel Dos Reis <firstname.lastname@example.org> 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