3969N/A/*
3969N/A * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
3969N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3969N/A *
3969N/A * This code is free software; you can redistribute it and/or modify it
3969N/A * under the terms of the GNU General Public License version 2 only, as
3969N/A * published by the Free Software Foundation.
3969N/A *
3969N/A * This code is distributed in the hope that it will be useful, but WITHOUT
3969N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3969N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3969N/A * version 2 for more details (a copy is included in the LICENSE file that
3969N/A * accompanied this code).
3969N/A *
3969N/A * You should have received a copy of the GNU General Public License version
3969N/A * 2 along with this work; if not, write to the Free Software Foundation,
3969N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3969N/A *
3969N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3969N/A * or visit www.oracle.com if you need additional information or have any
3969N/A * questions.
3969N/A */
3969N/A
3969N/A/**
3969N/A * @test
3969N/A * @bug 4530727
3969N/A * @summary When an exception is declared in the method signature but
3969N/A * not documented with a throws tag, we generate a link to it in the
3969N/A * throws section. Make sure that the link is below a Throws heading.
3969N/A * @author jamieh
3969N/A * @library ../lib/
3969N/A * @build JavadocTester
3969N/A * @build TestThrowsHead
3969N/A * @run main TestThrowsHead
3969N/A */
3969N/A
3969N/Apublic class TestThrowsHead extends JavadocTester {
3969N/A
3969N/A private static final String BUG_ID = "4530727";
3969N/A private static final String[][] TEST = {
3969N/A {BUG_ID + FS + "C.html", "<dt><span class=\"strong\">Throws:</span>"}
3969N/A };
3969N/A private static final String[][] NEGATED_TEST = NO_TEST;
3969N/A private static final String[] ARGS = new String[] {
3969N/A "-d", BUG_ID, SRC_DIR + FS + "C.java"
3969N/A };
3969N/A
3969N/A /**
3969N/A * The entry point of the test.
3969N/A * @param args the array of command line arguments.
3969N/A */
3969N/A public static void main(String[] args) {
3969N/A TestThrowsHead tester = new TestThrowsHead();
3969N/A run(tester, ARGS, TEST, NEGATED_TEST);
3969N/A tester.printSummary();
3969N/A }
3969N/A
3969N/A /**
3969N/A * {@inheritDoc}
3969N/A */
3969N/A public String getBugId() {
3969N/A return BUG_ID;
3969N/A }
3969N/A
3969N/A /**
3969N/A * {@inheritDoc}
3969N/A */
3969N/A public String getBugName() {
3969N/A return getClass().getName();
3969N/A }
3969N/A}
3969N/A