mcimadamore@4: /* ohair@554: * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. mcimadamore@4: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mcimadamore@4: * mcimadamore@4: * This code is free software; you can redistribute it and/or modify it mcimadamore@4: * under the terms of the GNU General Public License version 2 only, as mcimadamore@4: * published by the Free Software Foundation. mcimadamore@4: * mcimadamore@4: * This code is distributed in the hope that it will be useful, but WITHOUT mcimadamore@4: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mcimadamore@4: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mcimadamore@4: * version 2 for more details (a copy is included in the LICENSE file that mcimadamore@4: * accompanied this code). mcimadamore@4: * mcimadamore@4: * You should have received a copy of the GNU General Public License version mcimadamore@4: * 2 along with this work; if not, write to the Free Software Foundation, mcimadamore@4: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mcimadamore@4: * ohair@554: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@554: * or visit www.oracle.com if you need additional information or have any ohair@554: * questions. mcimadamore@4: */ mcimadamore@4: mcimadamore@4: /* mcimadamore@4: * @test mcimadamore@4: * @bug 6614974 mcimadamore@4: * @summary javac successfully compiles code that throws java.lang.VerifyError when run mcimadamore@4: * @author mcimadamore mcimadamore@4: */ mcimadamore@4: public class T6614974 { mcimadamore@4: mcimadamore@4: private T n; mcimadamore@4: mcimadamore@4: public void error() { mcimadamore@4: T6614974 val = new T6614974(); mcimadamore@4: val.n = 0; mcimadamore@4: Integer.toString(val.n++); mcimadamore@4: } mcimadamore@4: mcimadamore@4: public static void main(String[] args) { mcimadamore@4: T6614974.class.getMethods(); mcimadamore@4: } mcimadamore@4: }