8051004: javac, incorrect bug id in tests for JDK-8050386

Thu, 17 Jul 2014 10:55:50 -0400

author
vromero
date
Thu, 17 Jul 2014 10:55:50 -0400
changeset 2542
fa6e91185a27
parent 2541
77e510138519
child 2543
c6d5efccedc3

8051004: javac, incorrect bug id in tests for JDK-8050386
Reviewed-by: mcimadamore

test/tools/javac/T8049305/WrongStackframeGenerationTest1.java file | annotate | diff | comparison | revisions
test/tools/javac/T8049305/WrongStackframeGenerationTest2.java file | annotate | diff | comparison | revisions
test/tools/javac/T8050386/WrongStackframeGenerationTest1.java file | annotate | diff | comparison | revisions
test/tools/javac/T8050386/WrongStackframeGenerationTest2.java file | annotate | diff | comparison | revisions
     1.1 --- a/test/tools/javac/T8049305/WrongStackframeGenerationTest1.java	Wed Jul 16 10:47:56 2014 -0400
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,47 +0,0 @@
     1.4 -/*
     1.5 - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
     1.6 - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.7 - *
     1.8 - * This code is free software; you can redistribute it and/or modify it
     1.9 - * under the terms of the GNU General Public License version 2 only, as
    1.10 - * published by the Free Software Foundation.
    1.11 - *
    1.12 - * This code is distributed in the hope that it will be useful, but WITHOUT
    1.13 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.14 - * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.15 - * version 2 for more details (a copy is included in the LICENSE file that
    1.16 - * accompanied this code).
    1.17 - *
    1.18 - * You should have received a copy of the GNU General Public License version
    1.19 - * 2 along with this work; if not, write to the Free Software Foundation,
    1.20 - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.21 - *
    1.22 - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    1.23 - * or visit www.oracle.com if you need additional information or have any
    1.24 - * questions.
    1.25 - */
    1.26 -
    1.27 -/*
    1.28 - * @test
    1.29 - * @bug 8049305
    1.30 - * @summary Verification error due to a bad stackmap frame generated by javac
    1.31 - */
    1.32 -
    1.33 -public class WrongStackframeGenerationTest1 {
    1.34 -    public static void main(String[] args) {}
    1.35 -
    1.36 -    static void foo(){
    1.37 -        while (true) {
    1.38 -            int i = 0;
    1.39 -            break;
    1.40 -        }
    1.41 -        switch (1) {
    1.42 -            case 1:
    1.43 -                int j = 0;
    1.44 -            case 2:
    1.45 -                bar();
    1.46 -        }
    1.47 -    }
    1.48 -
    1.49 -    static void bar() {}
    1.50 -}
     2.1 --- a/test/tools/javac/T8049305/WrongStackframeGenerationTest2.java	Wed Jul 16 10:47:56 2014 -0400
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,50 +0,0 @@
     2.4 -/*
     2.5 - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
     2.6 - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     2.7 - *
     2.8 - * This code is free software; you can redistribute it and/or modify it
     2.9 - * under the terms of the GNU General Public License version 2 only, as
    2.10 - * published by the Free Software Foundation.
    2.11 - *
    2.12 - * This code is distributed in the hope that it will be useful, but WITHOUT
    2.13 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    2.14 - * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    2.15 - * version 2 for more details (a copy is included in the LICENSE file that
    2.16 - * accompanied this code).
    2.17 - *
    2.18 - * You should have received a copy of the GNU General Public License version
    2.19 - * 2 along with this work; if not, write to the Free Software Foundation,
    2.20 - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    2.21 - *
    2.22 - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    2.23 - * or visit www.oracle.com if you need additional information or have any
    2.24 - * questions.
    2.25 - */
    2.26 -
    2.27 -/*
    2.28 - * @test
    2.29 - * @bug 8049305
    2.30 - * @summary Verification error due to a bad stackmap frame generated by javac
    2.31 - */
    2.32 -
    2.33 -public class WrongStackframeGenerationTest2 {
    2.34 -    public static void main(String[] args) {}
    2.35 -
    2.36 -    static void foo() {
    2.37 -        int len;
    2.38 -        for (;;) {
    2.39 -            try {
    2.40 -                len = 1;
    2.41 -                break;
    2.42 -            } catch (Exception e) {
    2.43 -            }
    2.44 -        }
    2.45 -
    2.46 -        try {
    2.47 -           if (len == -1) {
    2.48 -               len = 0;
    2.49 -           }
    2.50 -        } finally {
    2.51 -        }
    2.52 -    }
    2.53 -}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/test/tools/javac/T8050386/WrongStackframeGenerationTest1.java	Thu Jul 17 10:55:50 2014 -0400
     3.3 @@ -0,0 +1,47 @@
     3.4 +/*
     3.5 + * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
     3.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3.7 + *
     3.8 + * This code is free software; you can redistribute it and/or modify it
     3.9 + * under the terms of the GNU General Public License version 2 only, as
    3.10 + * published by the Free Software Foundation.
    3.11 + *
    3.12 + * This code is distributed in the hope that it will be useful, but WITHOUT
    3.13 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    3.14 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    3.15 + * version 2 for more details (a copy is included in the LICENSE file that
    3.16 + * accompanied this code).
    3.17 + *
    3.18 + * You should have received a copy of the GNU General Public License version
    3.19 + * 2 along with this work; if not, write to the Free Software Foundation,
    3.20 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    3.21 + *
    3.22 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    3.23 + * or visit www.oracle.com if you need additional information or have any
    3.24 + * questions.
    3.25 + */
    3.26 +
    3.27 +/*
    3.28 + * @test
    3.29 + * @bug 8050386
    3.30 + * @summary Verification error due to a bad stackmap frame generated by javac
    3.31 + */
    3.32 +
    3.33 +public class WrongStackframeGenerationTest1 {
    3.34 +    public static void main(String[] args) {}
    3.35 +
    3.36 +    static void foo(){
    3.37 +        while (true) {
    3.38 +            int i = 0;
    3.39 +            break;
    3.40 +        }
    3.41 +        switch (1) {
    3.42 +            case 1:
    3.43 +                int j = 0;
    3.44 +            case 2:
    3.45 +                bar();
    3.46 +        }
    3.47 +    }
    3.48 +
    3.49 +    static void bar() {}
    3.50 +}
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/test/tools/javac/T8050386/WrongStackframeGenerationTest2.java	Thu Jul 17 10:55:50 2014 -0400
     4.3 @@ -0,0 +1,50 @@
     4.4 +/*
     4.5 + * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
     4.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4.7 + *
     4.8 + * This code is free software; you can redistribute it and/or modify it
     4.9 + * under the terms of the GNU General Public License version 2 only, as
    4.10 + * published by the Free Software Foundation.
    4.11 + *
    4.12 + * This code is distributed in the hope that it will be useful, but WITHOUT
    4.13 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    4.14 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    4.15 + * version 2 for more details (a copy is included in the LICENSE file that
    4.16 + * accompanied this code).
    4.17 + *
    4.18 + * You should have received a copy of the GNU General Public License version
    4.19 + * 2 along with this work; if not, write to the Free Software Foundation,
    4.20 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    4.21 + *
    4.22 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    4.23 + * or visit www.oracle.com if you need additional information or have any
    4.24 + * questions.
    4.25 + */
    4.26 +
    4.27 +/*
    4.28 + * @test
    4.29 + * @bug 8050386
    4.30 + * @summary Verification error due to a bad stackmap frame generated by javac
    4.31 + */
    4.32 +
    4.33 +public class WrongStackframeGenerationTest2 {
    4.34 +    public static void main(String[] args) {}
    4.35 +
    4.36 +    static void foo() {
    4.37 +        int len;
    4.38 +        for (;;) {
    4.39 +            try {
    4.40 +                len = 1;
    4.41 +                break;
    4.42 +            } catch (Exception e) {
    4.43 +            }
    4.44 +        }
    4.45 +
    4.46 +        try {
    4.47 +           if (len == -1) {
    4.48 +               len = 0;
    4.49 +           }
    4.50 +        } finally {
    4.51 +        }
    4.52 +    }
    4.53 +}

mercurial