test/com/sun/javadoc/5093723/T5093723.java

Tue, 08 Sep 2009 13:53:10 -0700

author
jjg
date
Tue, 08 Sep 2009 13:53:10 -0700
changeset 405
ebb6ad5a95bb
child 554
9d9f26857129
permissions
-rw-r--r--

5093723: REGRESSION: ClassCastException in SingleIndexWriter
Reviewed-by: jjg
Contributed-by: ahe@google.com

jjg@405 1 /*
jjg@405 2 * Copyright 2009 Google, Inc. All Rights Reserved.
jjg@405 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jjg@405 4 *
jjg@405 5 * This code is free software; you can redistribute it and/or modify it
jjg@405 6 * under the terms of the GNU General Public License version 2 only, as
jjg@405 7 * published by the Free Software Foundation.
jjg@405 8 *
jjg@405 9 * This code is distributed in the hope that it will be useful, but WITHOUT
jjg@405 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jjg@405 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
jjg@405 12 * version 2 for more details (a copy is included in the LICENSE file that
jjg@405 13 * accompanied this code).
jjg@405 14 *
jjg@405 15 * You should have received a copy of the GNU General Public License version
jjg@405 16 * 2 along with this work; if not, write to the Free Software Foundation,
jjg@405 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jjg@405 18 *
jjg@405 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
jjg@405 20 * CA 95054 USA or visit www.sun.com if you need additional information or
jjg@405 21 * have any questions.
jjg@405 22 */
jjg@405 23
jjg@405 24 /*
jjg@405 25 * @test
jjg@405 26 * @bug 5093723
jjg@405 27 * @summary REGRESSION: ClassCastException in SingleIndexWriter
jjg@405 28 * @library ../lib/
jjg@405 29 * @build JavadocTester
jjg@405 30 * @build T5093723
jjg@405 31 * @run main T5093723
jjg@405 32 */
jjg@405 33
jjg@405 34 public class T5093723 extends JavadocTester {
jjg@405 35
jjg@405 36 private static final String BUG_ID = "5093723";
jjg@405 37
jjg@405 38 private static final String[] ARGS = new String[] {
jjg@405 39 "-d", BUG_ID + ".out", "-source", "5",
jjg@405 40 SRC_DIR + "/DocumentedClass.java",
jjg@405 41 SRC_DIR + "/UndocumentedClass.java"
jjg@405 42 };
jjg@405 43
jjg@405 44 public static void main(String... args) {
jjg@405 45 T5093723 tester = new T5093723();
jjg@405 46 if (tester.runJavadoc(ARGS) != 0)
jjg@405 47 throw new AssertionError("non-zero return code from javadoc");
jjg@405 48 }
jjg@405 49
jjg@405 50 public String getBugId() {
jjg@405 51 return BUG_ID;
jjg@405 52 }
jjg@405 53
jjg@405 54 public String getBugName() {
jjg@405 55 return getClass().getName();
jjg@405 56 }
jjg@405 57 }

mercurial