This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

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


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

--- Comment #7 from licheng.1212 at gmail dot com <licheng.1212 at gmail dot com> 2011-05-26 15:06:37 UTC ---
(In reply to comment #6)
> the Testcase attachments can't donwload

I have got the Testcase,but it still hava problem

[lee@localhost Downloads]$ gcj -v DuplicateField.class 
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) 
COLLECT_GCC_OPTIONS='-v' '-fbootclasspath=./:/usr/share/java/libgcj-4.5.1.jar'
'-g1' '-shared-libgcc' '-mtune=generic' '-march=i686'
COLLECT_GCC_OPTIONS='-v' '-fbootclasspath=./:/usr/share/java/libgcj-4.5.1.jar'
'-g1' '-shared-libgcc' '-mtune=generic' '-march=i686'
 /usr/libexec/gcc/i686-redhat-linux/4.5.1/jc1 DuplicateField.class
-fhash-synchronization -fno-use-divide-subroutine -fuse-boehm-gc
-fnon-call-exceptions -fkeep-inline-functions -quiet -dumpbase
DuplicateField.class -mtune=generic -march=i686 -auxbase DuplicateField -g1
-version -fbootclasspath=./:/usr/share/java/libgcj-4.5.1.jar -faux-classpath
/tmp/ccUMiMyu.zip -o /tmp/ccGWZOga.s
GNU Java (GCC) version 4.5.1 20100924 (Red Hat 4.5.1-4) (i686-redhat-linux)
    compiled by GNU C version 4.5.1 20100924 (Red Hat 4.5.1-4), GMP version
4.3.1, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU Java (GCC) version 4.5.1 20100924 (Red Hat 4.5.1-4) (i686-redhat-linux)
    compiled by GNU C version 4.5.1 20100924 (Red Hat 4.5.1-4), GMP version
4.3.1, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Class path starts here:
    /tmp/ccUMiMyu.zip/ (zip)
    ./ (system)
    /usr/share/java/libgcj-4.5.1.jar/ (system) (zip)
DuplicateField.java: In class 'DuplicateField':
DuplicateField.java: In method 'DuplicateField.main(java.lang.String[])':
In file included from <built-in>:0:0:
DuplicateField.java:0:0: error: mismatching signature for field 'foo' in
'DuplicateField'
DuplicateField.java: In method 'DuplicateField.<clinit>()':
DuplicateField.java:0:0: error: mismatching signature for field 'foo' in
'DuplicateField'


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