# Friday, 21 June 2002
« No Title | Main | No Title »
Old News

Last week as was thinking about local variable handling, I found a bug in Sun's 1.4 JVM. Visit this url to crash your browser (if you use the Sun JVM, it doesn't work on the MS VM).

The pseudo source for the applet is:

public class test extends Applet
{
    synchronized void foo()
    {
        this = null;
    }

    public void init()
    {
        for(;;)  foo();
    }
}

The CLR (and Rotor too) throws an ArgumentNullException for similar code, which isn't ideal either, but at least it isn't crashing.
Friday, 21 June 2002 18:21:30 (W. Europe Daylight Time, UTC+02:00)  #    Comments [0]