2 * Copyright (C) 2007 The Android Open Source Project
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 static public void blort() {
20 // This space intentionally left blank.
23 // This test has a try-catch but the try code can't possibly throw.
24 public int test1(int x) {
36 } catch (RuntimeException ex) {
43 // This test has a try-catch where the try code can theoretically throw.
44 public int test2(int x) {
57 } catch (RuntimeException ex) {
64 // This test has a switch with a case that has a try-catch where
65 // the try code can theoretically throw, but it would be caught
66 // inside the case itself.
67 public int test3(int x) {
73 } catch (RuntimeException ex) {
87 // This test has a try-catch that has a switch with a case that
88 // has a try-catch where the try code can theoretically throw, but
89 // it would be caught inside the case itself, so the outer
90 // exception handler should be considered dead.
91 public int test4(int x) {
98 } catch (RuntimeException ex) {
108 } catch (RuntimeException ex) {