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