source: trunk/gcc/libjava/testsuite/libjava.lang/Synch.java

Last change on this file was 2, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 304 bytes
Line 
1public class Synch
2{
3 public synchronized void s()
4 {
5 // This call to notify() isn't supposed to cause a
6 // java.lang.IllegalMonitorStateException.
7 notify ();
8 }
9
10 public static void main (String[] args)
11 {
12 (new Synch()).s();
13 System.out.println ("Ok");
14 }
15}
16
17
Note: See TracBrowser for help on using the repository browser.