|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
4 | 4 | *
|
5 | 5 | * This code is free software; you can redistribute it and/or modify it
|
|
23 | 23 |
|
24 | 24 | /*
|
25 | 25 | * @test
|
26 |
| - * @bug 4490068 8075778 |
| 26 | + * @bug 4490068 8075778 8283041 |
27 | 27 | * @summary General tests for inline or block at-return tag
|
28 | 28 | * @library /tools/lib ../../lib
|
29 | 29 | * @modules jdk.javadoc/jdk.javadoc.internal.tool
|
@@ -265,16 +265,30 @@ public class C {
|
265 | 265 | */
|
266 | 266 | public int m() { return 0; }
|
267 | 267 | }
|
| 268 | + """, |
| 269 | + """ |
| 270 | + /** Comment. */ |
| 271 | + public class X { |
| 272 | + /** |
| 273 | + * @author Jim |
| 274 | + * {@return the result} |
| 275 | + */ |
| 276 | + public int m() { return 0; } |
| 277 | + } |
268 | 278 | """);
|
269 | 279 |
|
270 | 280 | javadoc("-d", base.resolve("out").toString(),
|
271 | 281 | "-sourcepath", src.toString(),
|
272 |
| - src.resolve("C.java").toString()); |
| 282 | + src.resolve("C.java").toString(), |
| 283 | + src.resolve("X.java").toString()); |
273 | 284 | checkExit(Exit.OK);
|
274 | 285 |
|
275 | 286 | checkOutput(Output.OUT, true,
|
276 | 287 | "C.java:4: warning: {@return} not at beginning of description");
|
277 | 288 |
|
| 289 | + checkOutput(Output.OUT, true, |
| 290 | + "X.java:5: warning: {@return} not at beginning of description"); |
| 291 | + |
278 | 292 | checkOutput("C.html", true,
|
279 | 293 | """
|
280 | 294 | <div class="block">Some text. Returns the result. More text.</div>
|
|
0 commit comments