[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

gcj internal error mismatching types (unknown but predicatable) when using exceptions



>Submitter-Id:	net
>Originator:	COVAL
>Organization:	<http://rzr.online.fr>
>Confidential:	no
>Synopsis: gcj internal error mismatching types (unknown but predicatable) when using exceptions
>Severity:	
>Priority:	
>Category:	java
>Class:		
>Release:	3.3.5 (Debian 1:3.3.5-8) (Debian testing/unstable)
>Environment:
System: Linux nrv 2.6.11.6-k7-amiloa #1 Wed Mar 30 23:01:08 CEST 2005 i686 GNU/Linux
Architecture: i686

	
host: i486-pc-linux-gnu
build: i486-pc-linux-gnu
target: i486-pc-linux-gnu
configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
>Description:
I expect the compiler to detect mismatching types on bad codes , or at least don't crash
>How-To-Repeat:
/** @author http://rzr.online.fr/contact.htm */
class javaexception {
    public void exceptionBug(int cast) throws Exception {
        throw ( "Invalid Parameter " + cast ); // MISTAKE HERE
        throw new Exception( "Invalid Parameter " + cast );

    }
}
/*
gcj --version
gcj -C javaexception.java

dpkg -s j2sdk
javac javaexception.java 

----

#debian:~/src/tests/#$ gcj --version
gcj (GCC) 3.3.5 (Debian 1:3.3.5-12)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

#debian:~/src/tests/#$ gcj-3.4 --version
gcj-3.4 (GCC) 3.4.4 20050314 (prerelease) (Debian 3.4.3-12)

#debian:~/src/tests/#$ gcj -C javaexception.java
javaexception.java: In class `javaexception':
javaexception.java: In method `javaexception.exceptionBug()':
javaexception.java:3: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions, see
<URL:file:///usr/share/doc/gcc-3.3/README.Bugs>.
#debian:~/src/tests/#$
#debian:~/src/tests/#$ dpkg -s j2sdk
Package: j2sdk
Status: install ok installed
Priority: optional
Section: non-free/devel
Installed-Size: 91808
Maintainer: Joe Phillips <joe.phillips@innovationsw.com>
Architecture: i386
Version: 1.4.2-1
Provides: java-compiler, java2-compiler, java-virtual-machine, java1-runtime, java2-runtime
Depends: java-common, libasound2 (>= 0.9.0beta10a-1), libc6 (>= 2.2.4-4), libgcc1 (>= 1:3.0.3-1), xlibs (>> 4.1.0)
Description: J2SE Development Kit
 Sun Microsystem's Java2 Standard Edition Development Kit

*/

>Fix:
	



Reply to: