[kaffe] CVS kaffe (robilad): test/regression/ProcessClassInst.java: Simplified.
Kaffe CVS
cvs-commits at kaffe.org
Wed Jun 13 15:19:56 PDT 2007
PatchSet 7488
Date: 2007/06/13 22:19:01
Author: robilad
Branch: HEAD
Tag: (none)
Log:
2007-06-13 Dalibor Topic <robilad at kaffe.org>
* test/regression/ProcessClassInst.java: Simplified.
Members:
ChangeLog:1.4987->1.4988
test/regression/ProcessClassInst.java:1.18->1.19
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4987 kaffe/ChangeLog:1.4988
--- kaffe/ChangeLog:1.4987 Wed Jun 13 21:52:33 2007
+++ kaffe/ChangeLog Wed Jun 13 22:19:01 2007
@@ -1,5 +1,9 @@
2007-06-13 Dalibor Topic <robilad at kaffe.org>
+ * test/regression/ProcessClassInst.java: Simplified.
+
+2007-06-13 Dalibor Topic <robilad at kaffe.org>
+
* test/awt/WidgetsDemo/WidgetsDemo.java (itemStateChanged): Fixed jikes warning.
2007-06-11 Dalibor Topic <robilad at kaffe.org>
Index: kaffe/test/regression/ProcessClassInst.java
diff -u kaffe/test/regression/ProcessClassInst.java:1.18 kaffe/test/regression/ProcessClassInst.java:1.19
--- kaffe/test/regression/ProcessClassInst.java:1.18 Mon May 22 15:22:56 2006
+++ kaffe/test/regression/ProcessClassInst.java Wed Jun 13 22:19:02 2007
@@ -69,42 +69,16 @@
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);
+ }
}
}
/* 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 ProcessClassInst.main (ProcessClassInst.java:72)
*/
More information about the kaffe
mailing list