1631N/A/*
1631N/A * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
1631N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1631N/A *
1631N/A * This code is free software; you can redistribute it and/or modify it
1631N/A * under the terms of the GNU General Public License version 2 only, as
1631N/A * published by the Free Software Foundation.
1631N/A *
1631N/A * This code is distributed in the hope that it will be useful, but WITHOUT
1631N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1631N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1631N/A * version 2 for more details (a copy is included in the LICENSE file that
1631N/A * accompanied this code).
1631N/A *
1631N/A * You should have received a copy of the GNU General Public License version
1631N/A * 2 along with this work; if not, write to the Free Software Foundation,
1631N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1631N/A *
1631N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1631N/A * or visit www.oracle.com if you need additional information or have any
1631N/A * questions.
1631N/A */
1631N/A
1631N/A/*
1631N/A * @test
1631N/A * @bug 4421066
1631N/A * @summary Verify the reading of generic methods and constructors.
1631N/A * @library ../../lib
1631N/A * @compile ../../lib/Tester.java Main.java
1631N/A * @run main Main
1631N/A */
1631N/A
1631N/Aimport java.io.IOException;
1631N/Aimport com.sun.javadoc.*;
1631N/A
1631N/Apublic class Main extends Tester.Doclet {
1631N/A
1631N/A private static final Tester tester = new Tester("Main", "pkg1");
1631N/A
1631N/A public static void main(String[] args) throws IOException {
1631N/A tester.run();
1631N/A tester.verify();
1631N/A }
1631N/A
1631N/A public static boolean start(RootDoc root) {
1631N/A try {
1631N/A for (ClassDoc cd : root.classes()) {
1631N/A for (ConstructorDoc c : cd.constructors())
1631N/A tester.printConstructor(c);
1631N/A for (MethodDoc m : cd.methods())
1631N/A tester.printMethod(m);
1631N/A }
1631N/A
1631N/A return true;
1631N/A } catch (IOException e) {
1631N/A return false;
1631N/A }
1631N/A }
1631N/A}
1631N/A