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