|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2013, 2024, 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
|
|
24 | 24 | /*
|
25 | 25 | * @test
|
26 | 26 | * @bug 8005091 8009686 8025633 8026567 6469562 8071982 8071984 8162363 8175200 8186332 8182765
|
27 |
| - * 8187288 8241969 8259216 |
| 27 | + * 8187288 8241969 8259216 8325433 |
28 | 28 | * @summary Make sure that type annotations are displayed correctly
|
29 | 29 | * @library ../../lib
|
30 | 30 | * @modules jdk.javadoc/jdk.javadoc.internal.tool
|
@@ -144,7 +144,17 @@ annotation interface in typeannos">@FldA</a> java.lang.String,<wbr><a href="FldB
|
144 | 144 | le="annotation interface in typeannos">@FldB</a> [] <a href="FldC.html" title="a\
|
145 | 145 | nnotation interface in typeannos">@FldC</a> <a href="FldA.html" title="annotatio\
|
146 | 146 | n interface in typeannos">@FldA</a> []</span> <span class="element-name">ar\
|
147 |
| - ray2Deep</span></div>"""); |
| 147 | + ray2Deep</span></div>""", |
| 148 | + |
| 149 | + """ |
| 150 | + <div class="member-signature"><span class="return-type"><a href="FldA.html" titl\ |
| 151 | + e="annotation interface in typeannos">@FldA</a> int</span> <span cl\ |
| 152 | + ass="element-name">primitive</span></div>""", |
| 153 | + """ |
| 154 | + <div class="member-signature"><span class="return-type"><a href="FldA.html" titl\ |
| 155 | + e="annotation interface in typeannos">@FldA</a> int <a href="FldB.h\ |
| 156 | + tml" title="annotation interface in typeannos">@FldB</a> []</span> <span cl\ |
| 157 | + ass="element-name">primitiveArray1Deep</span></div>"""); |
148 | 158 |
|
149 | 159 | checkOutput("typeannos/ModifiedScoped.html", true,
|
150 | 160 | """
|
@@ -182,7 +192,18 @@ interface in typeannos">@FldB</a> java.lang.String></span> <span class=\
|
182 | 192 | """
|
183 | 193 | <div class="member-signature"><span class="return-type"><a href="MRtnA.html" tit\
|
184 | 194 | le="annotation interface in typeannos">@MRtnA</a> java.lang.String[][]</span>&nb\
|
185 |
| - sp;<span class="element-name">array2</span>()</div>"""); |
| 195 | + sp;<span class="element-name">array2</span>()</div>""", |
| 196 | + |
| 197 | + """ |
| 198 | + <div class="member-signature"><span class="return-type"><a href="MRtnA.html" tit\ |
| 199 | + le="annotation interface in typeannos">@MRtnA</a> int</span> \ |
| 200 | + <span class="element-name">primitive</span>()</div>""", |
| 201 | + |
| 202 | + """ |
| 203 | + <div class="member-signature"><span class="return-type"><a href="MRtnA.html" tit\ |
| 204 | + le="annotation interface in typeannos">@MRtnA</a> int <a href="MRtn\ |
| 205 | + B.html" title="annotation interface in typeannos">@MRtnB</a> []</span> <spa\ |
| 206 | + n class="element-name">primitiveArray1Deep</span>()</div>"""); |
186 | 207 |
|
187 | 208 | checkOutput("typeannos/MtdModifiedScoped.html", true,
|
188 | 209 | """
|
@@ -255,7 +276,20 @@ tation interface in typeannos">@ParamB</a> java.lang.String> a)</span></
|
255 | 276 | amA.html" title="annotation interface in typeannos">@ParamA</a> java.lang.String\
|
256 | 277 | <a href="ParamB.html" title="annotation interface in typeannos">@ParamB</a> [] \
|
257 | 278 | <a href="ParamA.html" title="annotation interface in typeannos">@ParamA</a> []&n\
|
258 |
| - bsp;a)</span></div>"""); |
| 279 | + bsp;a)</span></div>""", |
| 280 | + |
| 281 | + """ |
| 282 | + <div class="member-signature"><span class="return-type">void</span> <span c\ |
| 283 | + lass="element-name">primitive</span><wbr><span class="parameters">(<a href="Par\ |
| 284 | + amA.html" title="annotation interface in typeannos">@ParamA</a> int a)</sp\ |
| 285 | + an></div>""", |
| 286 | + |
| 287 | + """ |
| 288 | + <div class="member-signature"><span class="return-type">void</span> <span c\ |
| 289 | + lass="element-name">primitiveArray1Deep</span><wbr><span class="parameters">(<a \ |
| 290 | + href="ParamA.html" title="annotation interface in typeannos">@ParamA</a> int <a \ |
| 291 | + href="ParamB.html" title="annotation interface in typeannos">@ParamB</a> [] \ |
| 292 | + ;a)</span></div>"""); |
259 | 293 |
|
260 | 294 | // Test for type annotations on throws (Throws.java).
|
261 | 295 | checkOutput("typeannos/ThrDefaultUnmodified.html", true,
|
|
0 commit comments