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

Robert Schuster theBohemian@gmx.net
Tue Apr 17 10:01:00 GMT 2007


Hi.
I remember that there was a discussion months ago[0] about adding the 
return type to the method's signature. Doing so was postponed because at 
the time it was discussed an ABI-change was not possible.
Regards
Robert
[0] - http://gcc.gnu.org/ml/java/2005-08/msg00058.html
Andrew Haley schrieb:
> g++ says:
>> /home/aph/gcc/trunk/libjava/java/io/PrintWriter.h:63: error: 'virtual java::io::Writer* java::io::PrintWriter::target$append(java::lang::CharSequence*, jint, jint)' cannot be overloaded
> /home/aph/gcc/trunk/libjava/java/io/PrintWriter.h:57: error: with 'virtual java::io::PrintWriter* java::io::PrintWriter::target$append(java::lang::CharSequence*, jint, jint)'
>> and it's right:
>> virtual ::java::io::PrintWriter * target$append(::java::lang::CharSequence *, jint, jint);
> ...
> virtual ::java::io::Writer * target$append(::java::lang::CharSequence *, jint, jint);
>> there is no disambiguation between these two methods. Suggestions?
>> Andrew.
>


More information about the Java mailing list

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