gcc/libjava/testsuite/libjava.lang/Synch.java

18 lines
304 B
Java
Raw Normal View History

1999-04-07 22:42:40 +08:00
public class Synch
{
public synchronized void s()
{
// This call to notify() isn't supposed to cause a
// java.lang.IllegalMonitorStateException.
notify ();
}
public static void main (String[] args)
{
(new Synch()).s();
System.out.println ("Ok");
}
}