* tests/regression/junit/Makefile.am (JAVACCMD): Added -source 1.5
[cacao.git] / tests / stack / classcontextnativeTest.java
index 44334bbba418bfb3b60461d3fc6912ced939389b..6657696658c4b7a6f1c15f1d32ae83d0575c9a52 100644 (file)
@@ -2,89 +2,93 @@ public class classcontextnativeTest {
 
        public classcontextnativeTest() {}
 
-       private static void z() {
-               try {
+       private static void z() throws Exception{
+//             try {
                Object o=Class.forName("blup",true,null).newInstance();
-               } catch (Throwable e) {
-                       System.out.println("TEST: "+e.toString());
-               }
+//             } catch (Throwable e) {
+//                     System.out.println("TEST: "+e.toString());
+//             }
        }
 
-       private static native void y();
+       private static native void y() throws Exception;
 
-       private static void x() {
+       private static void x() throws Exception {
                y();
        }
-       private static void w() {
+       private static void w() throws Exception{
                x();
        }
-       private static void v() {
+       private static void v() throws Exception{
                w();
        }
-       private static void u() {
+       private static void u() throws Exception{
                v();
        }
-       private static void t() {
+       private static void t() throws Exception{
                u();
        }
-       private static void s() {
+       private static void s() throws Exception{
                t();
        }
-       private static void r() {
+       private static void r() throws Exception{
                s();
        }
-       private static void q() {
+       private static void q() throws Exception{
                r();
        }
-       private static void p() {
+       private static void p() throws Exception{
                q();
        }
-       private static void o() {
+       private static void o() throws Exception{
                p();
        }
-       private static void n() {
+       private static void n() throws Exception{
                o();
        }
-       private static void m() {
+       private static void m() throws Exception{
                n();
        }
-       private static void l() {
+       private static void l() throws Exception{
                m();
        }
-       private native static void k();
+       private native static void k() throws Exception;
 
-       private static void j() {
+       private static void j() throws Exception{
                k();
        }
-       private static void i() {
+       private static void i() throws Exception{
                j();
        }
-       private static void h() {
+       private static void h() throws Exception{
                i();
        }
-       private static void g() {
+       private static void g() throws Exception{
                h();
        }
-       private static void f() {
+       private static void f() throws Exception{
                g();
        }
-       private static void e() {
+       private static void e() throws Exception{
                f();
        }
-       private static void d() {
+       private static void d() throws Exception{
                e();
        }
-       private static void c() {
+       private static void c() throws Exception{
                d();
        }
-       private static void b() {
+       private static void b() throws Exception{
                c();
        }
 
-       private native static void a();
+       private native static void a() throws Exception;
 
        public static void main(String args[]) {
                System.setSecurityManager(new SecurityManager());
-               a();
+               try {
+                       a();
+               } catch (Exception e) {
+                       e.printStackTrace();
+               }
        }
 }