Bug report
Bryce McKinlay
bryce@waitaki.otago.ac.nz
Thu Oct 18 16:21:00 GMT 2001
Eduard Bloch wrote:
>Hello, following simple Java program crashes when compiled with gcj. If
>I compile with javac and run it in kaffe, it works flawless. When
>compiled with gcj...
>
Thanks. Looks like a problem with our BufferedWriter. I'll look into it...
>gcj-3.0 -g fromFileToFile.java --main=fromFileToFile
>then following happens:
>./a.out einsteiger.txt asdf
>Error while creating the new file...
>>And if I change the Exception to IOExcepion (as it should be), it
>crashes or exits.
>
This is correct. The exception being thrown is an
ArrayIndexOutOfBoundsException, which is unchecked and does not extend
IOException.
>./a.out einsteiger.txt asdf
>Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
> at 0x4018e174: java.lang.Throwable.Throwable() (/usr/lib/libgcj.so.2)
> at 0x4018475c: java.lang.Exception.Exception() (/usr/lib/libgcj.so.2)
> at 0x40188Abgebrochen
>inet@zombie:~/studium/essy2/aufg.bl.2> addr2line: /proc/10926/exe: No such file or directory
>inet@zombie:~/studium/essy2/aufg.bl.2> ./a.out einsteiger.txt asdf
>
This (ie not printing a proper stack trace) is fixed on the trunk and
also for gcc 3.0.2.
regards
Bryce.
More information about the Java
mailing list