Remove opening of DexFile from pointer
Change-Id: I158e75e9e72f1dcc579742ff08c80d3f857852b3
diff --git a/test/ExceptionHandle/ExceptionHandle.java b/test/ExceptionHandle/ExceptionHandle.java
new file mode 100644
index 0000000..94c6f5b
--- /dev/null
+++ b/test/ExceptionHandle/ExceptionHandle.java
@@ -0,0 +1,27 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+import java.io.IOException;
+
+public class ExceptionHandle {
+ int f() throws Exception {
+ try {
+ g(1);
+ } catch (IOException e) {
+ return 1;
+ } catch (Exception e) {
+ return 2;
+ }
+ try {
+ g(2);
+ } catch (IOException e) {
+ return 3;
+ }
+ return 0;
+ }
+ void g(int doThrow) throws Exception {
+ if (doThrow == 1) {
+ throw new Exception();
+ } else if (doThrow == 2) {
+ throw new IOException();
+ }
+ }
+}