This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Trunk gcj ICEs on instance variable increment within try block when compiling to native object. (And a try/finally related bug.)
- To: Mark J Roberts <mjr at anarcast dot net>
- Subject: Re: Trunk gcj ICEs on instance variable increment within try block when compiling to native object. (And a try/finally related bug.)
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Date: Fri, 10 Aug 2001 11:03:11 +1200
- CC: java at gcc dot gnu dot org
- References: <20010809021726.A185@foobar>
Mark J Roberts wrote:
> Bug Number Two
> --------------
>
> public class Test {
> public static void main(String[] args) throws Exception {
> try { throw new Exception(); } finally {}
> }
> }
>
> $ gcj -o test --main=Test Test.java
> $ ./test
> Aborted (core dumped)
This one is a known libgcj bug - there is currently no default exception handler
for the main thread so the runtime aborts when an exception is thrown but not
handled. I have a fix for this which I will check in soon...
> And when I first compile to bytecode with jikes:
>
> $ jikes Test.java
> $ gcj -o test --main=Test Test.class
> $ ./test
>
> It then enters a busy loop and continuously allocates memory.
Don't know about this one though.
regards
Bryce.