BadSuper.java revision 3233:b5d08bc0d224
1139749Simp/* 2113584Ssimokawa * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved. 3103285Sikob * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4103285Sikob * 5103285Sikob * This code is free software; you can redistribute it and/or modify it 6103285Sikob * under the terms of the GNU General Public License version 2 only, as 7103285Sikob * published by the Free Software Foundation. 8103285Sikob * 9103285Sikob * This code is distributed in the hope that it will be useful, but WITHOUT 10103285Sikob * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11103285Sikob * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12103285Sikob * version 2 for more details (a copy is included in the LICENSE file that 13103285Sikob * accompanied this code). 14103285Sikob * 15103285Sikob * You should have received a copy of the GNU General Public License version 16103285Sikob * 2 along with this work; if not, write to the Free Software Foundation, 17103285Sikob * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18103285Sikob * 19103285Sikob * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20103285Sikob * or visit www.oracle.com if you need additional information or have any 21103285Sikob * questions. 22103285Sikob */ 23103285Sikob 24103285Sikob/* 25103285Sikob * @test 26103285Sikob * @bug 4983023 27103285Sikob * @summary A bad superclass shouldn't throw the standard doclet into a loop 28103285Sikob * @modules jdk.javadoc 29103285Sikob */ 30103285Sikob 31103285Sikobpublic class BadSuper { 32103285Sikob 33103285Sikob public static void main(String[] args) { 34103285Sikob String srcpath = System.getProperty("test.src", "."); 35103285Sikob 36103285Sikob if (com.sun.tools.javadoc.Main.execute( 37108432Ssimokawa new String[] {"-d", "doc", "-sourcepath", srcpath, "p"}) != 0) 38114215Ssimokawa throw new Error("Javadoc encountered warnings or errors."); 39114215Ssimokawa } 40114215Ssimokawa} 41114215Ssimokawa