JIT bug?

Christos Zoulas christos at zoulas.com
Thu May 20 16:47:58 UTC 2010


A friend of mine Andrew Neitsch sent this to me:

christos

public class Mainiac {
    
    public static void main(String[] args)
	throws Exception
    {
	int limit = Integer.MAX_VALUE;

	System.out.println("limit is " + limit);
	int i = 0;
	while (i++ < limit) {
	    System.err.format("i = %d < limit: %b\n", i, i < limit);
	}
	System.err.println("i = " + i);
	System.err.println("limit = " + limit);
    }
}



More information about the core-libs-dev mailing list