summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/Thread_Wait.java
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2016-09-30 16:24:48 +0000
committerAndrew Haley <aph@gcc.gnu.org>2016-09-30 16:24:48 +0000
commit07b78716af6a9d7c9fd1e94d9baf94a52c873947 (patch)
tree3f22b3241c513ad168c8353805614ae1249410f4 /libjava/testsuite/libjava.lang/Thread_Wait.java
parenteae993948bae8b788c53772bcb9217c063716f93 (diff)
Makefile.def: Remove libjava.
2016-09-30 Andrew Haley <aph@redhat.com> * Makefile.def: Remove libjava. * Makefile.tpl: Likewise. * Makefile.in: Regenerate. * configure.ac: Likewise. * configure: Likewise. * gcc/java: Remove. * libjava: Likewise. From-SVN: r240662
Diffstat (limited to 'libjava/testsuite/libjava.lang/Thread_Wait.java')
-rw-r--r--libjava/testsuite/libjava.lang/Thread_Wait.java48
1 files changed, 0 insertions, 48 deletions
diff --git a/libjava/testsuite/libjava.lang/Thread_Wait.java b/libjava/testsuite/libjava.lang/Thread_Wait.java
deleted file mode 100644
index 88508243a0a..00000000000
--- a/libjava/testsuite/libjava.lang/Thread_Wait.java
+++ /dev/null
@@ -1,48 +0,0 @@
-// Test basic thread creation and wait/notify functionality.
-
-public class Thread_Wait implements Runnable
-{
- public static void main(String args[])
- {
- new Thread_Wait();
- }
-
- public Thread_Wait()
- {
- System.out.println("creating thread");
- Thread t = new Thread(this);
- t.start();
-
- try
- {
- Thread.sleep(100);
- }
- catch (Exception x)
- {
- System.out.println("exception occurred: " + x);
- }
-
- synchronized (this)
- {
- System.out.println("notifying other thread");
- notify();
- }
- }
-
- public void run()
- {
- System.out.println ("new thread running");
- synchronized (this)
- {
- try
- {
- wait();
- }
- catch (Exception x)
- {
- System.out.println("exception occurred: " + x);
- }
- }
- System.out.println ("thread notified okay");
- }
-}