Fri, 24 Apr 2020 03:58:51 +0100
Merge
vromero@2542 | 1 | /* |
vromero@2542 | 2 | * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
vromero@2542 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
vromero@2542 | 4 | * |
vromero@2542 | 5 | * This code is free software; you can redistribute it and/or modify it |
vromero@2542 | 6 | * under the terms of the GNU General Public License version 2 only, as |
vromero@2542 | 7 | * published by the Free Software Foundation. |
vromero@2542 | 8 | * |
vromero@2542 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
vromero@2542 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
vromero@2542 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
vromero@2542 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
vromero@2542 | 13 | * accompanied this code). |
vromero@2542 | 14 | * |
vromero@2542 | 15 | * You should have received a copy of the GNU General Public License version |
vromero@2542 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
vromero@2542 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
vromero@2542 | 18 | * |
vromero@2542 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
vromero@2542 | 20 | * or visit www.oracle.com if you need additional information or have any |
vromero@2542 | 21 | * questions. |
vromero@2542 | 22 | */ |
vromero@2542 | 23 | |
vromero@2542 | 24 | /* |
vromero@2542 | 25 | * @test |
vromero@2542 | 26 | * @bug 8050386 |
vromero@2542 | 27 | * @summary Verification error due to a bad stackmap frame generated by javac |
vromero@2542 | 28 | */ |
vromero@2542 | 29 | |
vromero@2542 | 30 | public class WrongStackframeGenerationTest2 { |
vromero@2542 | 31 | public static void main(String[] args) {} |
vromero@2542 | 32 | |
vromero@2542 | 33 | static void foo() { |
vromero@2542 | 34 | int len; |
vromero@2542 | 35 | for (;;) { |
vromero@2542 | 36 | try { |
vromero@2542 | 37 | len = 1; |
vromero@2542 | 38 | break; |
vromero@2542 | 39 | } catch (Exception e) { |
vromero@2542 | 40 | } |
vromero@2542 | 41 | } |
vromero@2542 | 42 | |
vromero@2542 | 43 | try { |
vromero@2542 | 44 | if (len == -1) { |
vromero@2542 | 45 | len = 0; |
vromero@2542 | 46 | } |
vromero@2542 | 47 | } finally { |
vromero@2542 | 48 | } |
vromero@2542 | 49 | } |
vromero@2542 | 50 | } |