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