Path: blob/aarch64-shenandoah-jdk8u272-b10/langtools/test/com/sun/javadoc/5093723/T5093723.java
48587 views
/*1* Copyright 2009 Google, Inc. All Rights Reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/2223/*24* @test25* @bug 509372326* @summary REGRESSION: ClassCastException in SingleIndexWriter27* @library ../lib/28* @build JavadocTester29* @build T509372330* @run main T509372331*/3233public class T5093723 extends JavadocTester {3435private static final String BUG_ID = "5093723";3637private static final String[] ARGS = new String[] {38"-d", BUG_ID + ".out", "-source", "5", "-Xdoclint:none",39SRC_DIR + "/DocumentedClass.java",40SRC_DIR + "/UndocumentedClass.java"41};4243public static void main(String... args) {44T5093723 tester = new T5093723();45if (tester.runJavadoc(ARGS) != 0)46throw new AssertionError("non-zero return code from javadoc");47}4849public String getBugId() {50return BUG_ID;51}5253public String getBugName() {54return getClass().getName();55}56}575859