This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]