690N/A/*
690N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
690N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
690N/A *
690N/A * This code is free software; you can redistribute it and/or modify it
690N/A * under the terms of the GNU General Public License version 2 only, as
690N/A * published by the Free Software Foundation.
690N/A *
690N/A * This code is distributed in the hope that it will be useful, but WITHOUT
690N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
690N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
690N/A * version 2 for more details (a copy is included in the LICENSE file that
690N/A * accompanied this code).
690N/A *
690N/A * You should have received a copy of the GNU General Public License version
690N/A * 2 along with this work; if not, write to the Free Software Foundation,
690N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
690N/A *
690N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
690N/A * or visit www.oracle.com if you need additional information or have any
690N/A * questions.
690N/A */
690N/A
690N/A/*
690N/A * @test
690N/A * @bug 6587674
690N/A * @summary NoClassdefFound when anonymously extending a class.
690N/A */
690N/A
690N/Aimport java.util.Vector;
690N/A
690N/Apublic class T6587674 {
690N/A private static final Vector<String> list =
690N/A true ? null : new Vector<String>() { };
690N/A
690N/A public static void main(String[] args) {
690N/A System.out.println("T6587674 runs fine!");
690N/A }
690N/A}