Mon, 17 Oct 2011 12:57:36 +0100
7093325: Redundant entry in bytecode exception table
Summary: Inlining of finalizers does not update gaps list accordingly
Reviewed-by: jjg
jjg@86 | 1 | /* |
ohair@554 | 2 | * Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved. |
jjg@86 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
jjg@86 | 4 | * |
jjg@86 | 5 | * This code is free software; you can redistribute it and/or modify it |
jjg@86 | 6 | * under the terms of the GNU General Public License version 2 only, as |
jjg@86 | 7 | * published by the Free Software Foundation. |
jjg@86 | 8 | * |
jjg@86 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
jjg@86 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
jjg@86 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
jjg@86 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
jjg@86 | 13 | * accompanied this code). |
jjg@86 | 14 | * |
jjg@86 | 15 | * You should have received a copy of the GNU General Public License version |
jjg@86 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
jjg@86 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
jjg@86 | 18 | * |
ohair@554 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@554 | 20 | * or visit www.oracle.com if you need additional information or have any |
ohair@554 | 21 | * questions. |
duke@1 | 22 | */ |
duke@1 | 23 | |
duke@1 | 24 | /** |
jjg@86 | 25 | * @test |
jjg@86 | 26 | * @bug 5045412 6627366 |
jjg@86 | 27 | * @compile -Xlint:serial -XDfailcomplete=java.io.Serializable Bar.java |
jjg@86 | 28 | */ |
jjg@86 | 29 | |
jjg@86 | 30 | /** |
jjg@86 | 31 | * @test |
jjg@86 | 32 | * @bug 5045412 6627366 |
jjg@86 | 33 | * @compile -Xlint:serial -XDfailcomplete=java.io.Serializable Bar.java Foo.java |
duke@1 | 34 | */ |
duke@1 | 35 | |
duke@1 | 36 | class Bar implements java.io.Serializable { } |