equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 8174839 8175200 8186332 |
26 * @bug 8174839 8175200 8186332 |
27 * @summary Bad overriding method should not crash |
27 * @summary Bad overriding method should not crash |
28 * @library ../lib |
28 * @library ../../lib |
29 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
29 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
30 * @build JavadocTester |
30 * @build javadoc.tester.* |
31 * @run main TestBadOverride |
31 * @run main TestBadOverride |
32 */ |
32 */ |
|
33 |
|
34 import javadoc.tester.JavadocTester; |
33 |
35 |
34 public class TestBadOverride extends JavadocTester { |
36 public class TestBadOverride extends JavadocTester { |
35 |
37 |
36 /** |
38 /** |
37 * The entry point of the test. |
39 * The entry point of the test. |
41 TestBadOverride tester = new TestBadOverride(); |
43 TestBadOverride tester = new TestBadOverride(); |
42 tester.runTests(); |
44 tester.runTests(); |
43 } |
45 } |
44 |
46 |
45 @Test |
47 @Test |
46 void test() { |
48 public void test() { |
47 javadoc("-d", "out", |
49 javadoc("-d", "out", |
48 "-sourcepath", testSrc, |
50 "-sourcepath", testSrc, |
49 "pkg4"); |
51 "pkg4"); |
50 checkExit(Exit.OK); |
52 checkExit(Exit.OK); |
51 |
53 |