gcj bug

Amancio Hasty hasty@netcom.com
Sun Jun 13 11:11:00 GMT 1999


Hi , 
I tried a slightly modified version of class and it appears to compile and run
over here. gcj is about 3 or 4 days old over here.

	Cheers,
	Amancio



class EH
{
    public int a;

    public EH()
    {
        try {
            a = 1;
        } catch(Throwable x) {
	}

        try {
            a = 2;
        } catch(Throwable x) {
	} finally {
            a = 3;
	}
    }
 public static void main (String args[]) {
     EH foo = new EH();
   for (int i = 1; i < 1000; i++) {
        System.out.println("Hello " + i);

   }

   System.out.println("a = " + foo.a);
 }
}


-----
./EH

...

Hello 996
Hello 997
Hello 998
Hello 999
a = 3


-- 

 Amancio Hasty
 ahasty@mindspring.com




More information about the Java mailing list