This is the mail archive of the java-discuss@sourceware.cygnus.com 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: gcj bug


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



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