This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


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

Re: Trunk gcj ICEs on instance variable increment within try block when compiling to native object. (And a try/finally related bug.)


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.



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