[kaffe] CVS kaffe (robilad): test/regression/ProcessClassStop.java: Simplified.
Kaffe CVS
cvs-commits at kaffe.org
Wed Jun 13 15:32:26 PDT 2007
PatchSet 7489
Date: 2007/06/13 22:31:29
Author: robilad
Branch: HEAD
Tag: (none)
Log:
2007-06-13 Dalibor Topic <robilad at kaffe.org>
* test/regression/ProcessClassStop.java: Simplified.
Members:
ChangeLog:1.4988->1.4989
test/regression/ProcessClassStop.java:1.18->1.19
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4988 kaffe/ChangeLog:1.4989
--- kaffe/ChangeLog:1.4988 Wed Jun 13 22:19:01 2007
+++ kaffe/ChangeLog Wed Jun 13 22:31:29 2007
@@ -1,5 +1,9 @@
2007-06-13 Dalibor Topic <robilad at kaffe.org>
+ * test/regression/ProcessClassStop.java: Simplified.
+
+2007-06-13 Dalibor Topic <robilad at kaffe.org>
+
* test/regression/ProcessClassInst.java: Simplified.
2007-06-13 Dalibor Topic <robilad at kaffe.org>
Index: kaffe/test/regression/ProcessClassStop.java
diff -u kaffe/test/regression/ProcessClassStop.java:1.18 kaffe/test/regression/ProcessClassStop.java:1.19
--- kaffe/test/regression/ProcessClassStop.java:1.18 Mon May 22 15:22:56 2006
+++ kaffe/test/regression/ProcessClassStop.java Wed Jun 13 22:31:30 2007
@@ -71,33 +71,11 @@
t0.join();
Class cc = v.elementAt(0).getClass();
- final Object ni = cc.newInstance();
-
-/***
- Thread other = new Thread() {
- public void run() {
- System.out.println(ni);
- }
- };
- other.start();
- other.join();
-***/
-
- System.out.println("m2 " + ni);
-
- Thread t2 = new Thread() {
- public void run() {
- try {
- System.out.println("t2 " +
- v.elementAt(0).getClass().newInstance());
- } catch (Throwable ty) {
- System.out.println(ty);
- }
- }
- };
- t2.start();
- t2.join();
- System.exit(0);
+ try {
+ final Object ni = cc.newInstance();
+ } catch (NoClassDefFoundError e) {
+ System.out.println(e);
+ }
}
}
@@ -105,9 +83,4 @@
/* Expected Output:
tan java.lang.NoClassDefFoundError: Base
java.lang.NoClassDefFoundError: Base
- at java.lang.reflect.Method.invoke0 (Method.java:native)
- at java.lang.reflect.Method.invoke (Method.java:525)
- at java.lang.reflect.Constructor.newInstance (Constructor.java:331)
- at java.lang.Class.newInstance (Class.java:1163)
- at ProcessClassStop.main (ProcessClassStop.java:74)
*/
More information about the kaffe
mailing list