mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-24 07:18:59 +08:00
ee9dd3721b
From-SVN: r26263
18 lines
304 B
Java
18 lines
304 B
Java
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");
|
|
}
|
|
}
|
|
|
|
|