This issue is caused by a bug in ecj 3.10 related to overridden methods with a covariant return type. Here StringBuffer.class is missing bridge methods matching the signature of the methods defined in the Appendable class. javac and ecj 3.9 generate them properly. I reported the issue upstream:
https://bugs.eclipse.org/438812 I tried to work around this issue by replacing 'name_sig->append' with 'name_sig->StringBuffer$append'. It compiles but break later in the build process: libtool: link: /home/ebourg/gcc/host-x86_64-linux-gnu/gcc/gcj -B/home/ebourg/gcc/x86_64-linux-gnu/libjava/ -B/home/ebourg/gcc/host-x86_64-linux-gnu/gcc/ -B/home/packages/gcc/svn/jinstall/x86_64-linux-gnu/bin/ -B/home/packages/gcc/svn/jinstall/x86_64-linux-gnu/lib/ -isystem /home/packages/gcc/svn/jinstall/x86_64-linux-gnu/include -isystem /home/packages/gcc/svn/jinstall/x86_64-linux-gnu/sys-include -fomit-frame-pointer -Usun -g -O2 -o .libs/jv-convert --main=gnu.gcj.convert.Convert -shared-libgcc -L/home/ebourg/gcc/x86_64-linux-gnu/libjava/.libs -L/home/ebourg/gcc/x86_64-linux-gnu/libjava ./.libs/libgcj.so -lpthread -lrt -ldl -Wl,-rpath -Wl,/home/packages/gcc/svn/jinstall/lib/../lib64 ./.libs/libgcj.so: undefined reference to `java::lang::StringBuffer* java::lang::StringBuffer::StringBuffer$append(wchar_t)' collect2: error: ld returned 1 exit status Emmanuel Bourg -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org