FUBAR in java.io.PrintWriter.h due to bridge methods

Tom Tromey tromey@redhat.com
Tue Apr 17 23:50:00 GMT 2007


>>>>> "Andrew" == Andrew Haley <aph@gcc.gnu.org> writes:

Andrew>   virtual ::java::io::PrintWriter * target$append(::java::lang::CharSequence *, jint, jint);
Andrew>   ...
Andrew>   virtual ::java::io::Writer * target$append(::java::lang::CharSequence *, jint, jint);

How strange.  Why did we not see this earlier?

Andrew> there is no disambiguation between these two methods.  Suggestions?

Obviously I didn't think of the case where a class requires multiple
bridge methods for a given "base" method.  Yikes.

I think the only fix is to further mangle subsequent bridge methods.
How unpleasant.

Tom



More information about the Java mailing list