X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=libjava%2Ftestsuite%2Flibjava.lang%2Fpr83.java;fp=libjava%2Ftestsuite%2Flibjava.lang%2Fpr83.java;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=b209aff28b4c9943243128c1544dd70f7b8e6c4a;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/libjava/testsuite/libjava.lang/pr83.java b/libjava/testsuite/libjava.lang/pr83.java deleted file mode 100644 index b209aff2..00000000 --- a/libjava/testsuite/libjava.lang/pr83.java +++ /dev/null @@ -1,39 +0,0 @@ -// PR 83 - -/* - * test that caught null pointers exceptions in finalizers work correctly - * and that local variables are accessible in null pointer exception handlers. - */ -import java.io.*; - -public class pr83 { - - static String s; - - public static void main(String[] args) { - System.out.println(tryfinally() + s); - } - - public static String tryfinally() { - String yuck = null; - String local_s = null; - - try { - return "This is "; - } finally { - try { - local_s = "Perfect"; - /* trigger null pointer exception */ - String x = yuck.toLowerCase(); - } catch (Exception _) { - /* - * when the null pointer exception is caught, we must still - * be able to access local_s. - * Our return address for the finally clause must also still - * be intact. - */ - s = local_s; - } - } - } -}