T5093723.java revision 553
1178N/A/*
1178N/A * Copyright 2009 Google, Inc. All Rights Reserved.
1178N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1178N/A *
1178N/A * This code is free software; you can redistribute it and/or modify it
1178N/A * under the terms of the GNU General Public License version 2 only, as
1178N/A * published by the Free Software Foundation.
1178N/A *
1178N/A * This code is distributed in the hope that it will be useful, but WITHOUT
1178N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1178N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1178N/A * version 2 for more details (a copy is included in the LICENSE file that
1178N/A * accompanied this code).
1178N/A *
1178N/A * You should have received a copy of the GNU General Public License version
1178N/A * 2 along with this work; if not, write to the Free Software Foundation,
1178N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1178N/A *
1178N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1178N/A * or visit www.oracle.com if you need additional information or have any
1178N/A * questions.
1178N/A */
1178N/A
1178N/A/*
0N/A * @test
1178N/A * @bug 5093723
1178N/A * @summary REGRESSION: ClassCastException in SingleIndexWriter
0N/A * @library ../lib/
0N/A * @build JavadocTester
0N/A * @build T5093723
1178N/A * @run main T5093723
1178N/A */
1178N/A
1178N/Apublic class T5093723 extends JavadocTester {
1178N/A
1178N/A private static final String BUG_ID = "5093723";
1178N/A
1178N/A private static final String[] ARGS = new String[] {
0N/A "-d", BUG_ID + ".out", "-source", "5",
1178N/A SRC_DIR + "/DocumentedClass.java",
1178N/A SRC_DIR + "/UndocumentedClass.java"
1178N/A };
1178N/A
1178N/A public static void main(String... args) {
1178N/A T5093723 tester = new T5093723();
1178N/A if (tester.runJavadoc(ARGS) != 0)
1178N/A throw new AssertionError("non-zero return code from javadoc");
1178N/A }
1178N/A
1178N/A public String getBugId() {
0N/A return BUG_ID;
1178N/A }
1178N/A
1178N/A public String getBugName() {
1178N/A return getClass().getName();
1178N/A }
1178N/A}
1178N/A