[Bug java/20215] gcj does not accept classes with same name fields

licheng.1212 at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu May 26 12:11:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20215

licheng.1212@gmail.com <licheng.1212 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |licheng.1212 at gmail dot
                   |                            |com

--- Comment #5 from licheng.1212 at gmail dot com <licheng.1212 at gmail dot com> 2011-05-26 12:10:07 UTC ---
(In reply to comment #4)
> Confirmed, the gij problem has been fixed by the patches above, this only
> leaves the java front-end 
> problem.

[lee@localhost gcj_test]$ gcj -v
Using built-in specs.
Reading specs from /usr/lib/gcc/i686-redhat-linux/4.5.1/libgcj.spec
rename spec startfile to startfileorig
rename spec lib to liborig
COLLECT_GCC=gcj
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-redhat-linux/4.5.1/lto-wrapper
Target: i686-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada,lto --enable-plugin
--enable-java-awt=gtk --disable-dssi
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch=i686
--build=i686-redhat-linux
Thread model: posix
gcc version 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC) 

a.java: In class 'a':
a.java: In method 'a.b(int)':
In file included from <built-in>:0:0:
a.java:0:0: error: mismatching signature for field 'aP' in 'a'
a.java:0:0: error: mismatching signature for field 'aP' in 'a'
a.java:0:0: error: mismatching signature for field 'ae' in 'a'



More information about the Gcc-bugs mailing list