Main.java revision a5a184892e60a89b564ca7c74e50b2ecb27d9f80
1// Copyright 2008 The Android Open Source Project
2
3public class Main {
4    public static void main(String[] args) {
5        Special special = new Special();
6        special.callInner();
7        System.out.println("done");
8    }
9
10    public static class Special {
11        Blort mBlort = null;
12
13        Special() {
14            System.out.println("new Special()");
15        }
16
17        public void callInner() {
18            try {
19                mBlort.repaint();
20                throw new RuntimeException("fail");
21            } catch (NullPointerException npe) {}
22        }
23    }
24
25    private class Blort {
26        public void repaint() {
27            System.out.println("shouldn't see this");
28        }
29    }
30
31}
32