Skip to content

Commit 9fed068

Browse files
Merge tag 'jdk-23+24' into labsjdk/automation-5-23-2024-5842
Added tag jdk-23+24 for changeset 9d332e6
2 parents 4c329b9 + 9d332e6 commit 9fed068

File tree

661 files changed

+39500
-7564
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

661 files changed

+39500
-7564
lines changed

make/CompileDemos.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ $(eval $(call SetupBuildDemo, SwingSet2, \
183183
))
184184

185185
$(eval $(call SetupBuildDemo, Font2DTest, \
186-
DISABLED_WARNINGS := rawtypes deprecation unchecked serial cast this-escape, \
186+
DISABLED_WARNINGS := rawtypes deprecation unchecked serial cast this-escape dangling-doc-comments, \
187187
DEMO_SUBDIR := jfc, \
188188
))
189189

make/autoconf/spec.gmk.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ DOCS_REFERENCE_JAVADOC := @DOCS_REFERENCE_JAVADOC@
675675
SOURCE_REVISION_TRACKER := $(SUPPORT_OUTPUTDIR)/src-rev/source-revision-tracker
676676

677677
# Interim langtools modules and arguments
678-
INTERIM_LANGTOOLS_BASE_MODULES := java.compiler jdk.compiler jdk.javadoc
678+
INTERIM_LANGTOOLS_BASE_MODULES := java.compiler jdk.compiler jdk.internal.md jdk.javadoc
679679
INTERIM_LANGTOOLS_MODULES := $(addsuffix .interim, $(INTERIM_LANGTOOLS_BASE_MODULES))
680680
INTERIM_LANGTOOLS_ADD_EXPORTS := \
681681
--add-exports java.base/sun.reflect.annotation=jdk.compiler.interim \

make/data/docs-resources/resources/jdk-default.css

Lines changed: 54 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -23,56 +23,62 @@
2323
* questions.
2424
*/
2525

26+
@import url('../api/resource-files/fonts/dejavu.css');
27+
2628
body {
27-
margin: 2em 2em;
2829
font-family: DejaVu Sans, Bitstream Vera Sans, Luxi Sans, Verdana, Arial, Helvetica, sans-serif;
2930
font-size: 10pt;
31+
margin: 0;
32+
padding: 0;
33+
height: 100%;
34+
width: 100%;
35+
min-width: 100%;
3036
line-height: 1.4;
3137
}
3238

3339
pre, code, tt {
34-
font-family: DejaVu Sans Mono, Bitstream Vera Sans Mono, Luxi Mono,
35-
Courier New, monospace;
40+
font-family: DejaVu Sans Mono, Bitstream Vera Sans Mono, Luxi Mono, Courier New, monospace;
41+
}
42+
43+
main, footer {
44+
margin: 16px 27px;
45+
}
46+
47+
/* Adjust horizontal margin for content elements outside of main element */
48+
:is(body, header) > :is(nav, h1, h2, h3, h4, h5, h6, p, .sub-title) {
49+
margin-left: 27px;
50+
margin-right: 27px;
3651
}
3752

3853
blockquote {
39-
margin: 1.5ex 0em 1.5ex 2em;
54+
margin: 1.5ex 0 1.5ex 2em;
4055
}
4156

4257
p {
43-
padding: 0pt;
44-
margin: 1ex 0em;
58+
margin-top: 1ex;
59+
margin-bottom: 1ex;
4560
}
4661

47-
p:first-child, pre:first-child { margin-top: 0pt; }
48-
49-
h1 {
50-
font-weight: bold;
51-
padding: 0pt;
52-
margin: 2ex .5ex 1ex 0pt;
62+
dd > p:first-child, pre:first-child {
63+
margin-top: 0;
5364
}
5465

5566
h1:first-child, h2:first-child {
56-
margin-top: 0ex;
67+
margin-top: 0;
5768
}
5869

59-
h2 {
60-
font-weight: bold;
61-
padding: 0pt;
62-
margin: 2ex 0pt 1ex 0pt;
70+
h1, h2 {
71+
margin-top: 2ex;
72+
margin-bottom: 1ex;
6373
}
6474

65-
h3 {
66-
font-weight: bold;
67-
padding: 0pt;
68-
margin: 1.5ex 0pt 1ex 0pt;
75+
h3, h4, h5 {
76+
margin-top: 1.5ex;
77+
margin-bottom: 1ex;
6978
}
7079

7180
h4, h5 {
7281
font-size: 100%;
73-
font-weight: bold;
74-
padding: 0pt;
75-
margin: 1.5ex 0pt 1ex 0pt;
7682
}
7783

7884
.subtitle {
@@ -100,7 +106,7 @@ a[href]:hover {
100106
}
101107

102108
a img {
103-
border-width: 0px;
109+
border-width: 0;
104110
}
105111

106112
img {
@@ -154,9 +160,9 @@ table.centered td {
154160

155161
.draft-header {
156162
text-align: center;
157-
font-size: 80%;
163+
font-size: 11.2px;
158164
padding: 6px;
159-
margin: -2.5em -2.5em 2.5em -2.5em;
165+
line-height: initial;
160166
}
161167

162168
.legal-footer {
@@ -183,29 +189,31 @@ nav#TOC ul ul li::before {
183189
content: " \2022 "
184190
}
185191

186-
header#title-block-header {
187-
margin-top:-2em;
192+
/* Rules below replicate sizing of navigation bar in API docs */
193+
header#title-block-header div.navbar {
194+
padding: 0 20px 0 26px;
195+
margin-bottom: 30px;
196+
background-color: #4D7A97;
197+
color: #FFFFFF;
198+
height: 44px;
199+
overflow: hidden;
200+
font-size: 0.857em;
201+
line-height: initial;
202+
display: flex;
203+
flex-direction: row-reverse;
204+
align-items: center;
188205
}
189206

190-
header#title-block-header div.navbar {
191-
margin: 0 -2.5em 2.5em -2.5em;
192-
padding: 0 2.5em;
193-
background-color:#4D7A97;
194-
color:#FFFFFF;
195-
float:left;
196-
width:100%;
197-
clear:right;
198-
min-height:2.8em;
199-
padding-top:10px;
200-
overflow:hidden;
201-
font-size:12px;
207+
header#title-block-header div.navbar nav {
208+
flex: 1 1 auto;
209+
font-size: 12px;
210+
white-space: nowrap;
202211
}
203212

204213
header#title-block-header div.navbar div {
205-
float:right;
206-
font-size:11px;
207-
height:2.9em;
208-
margin: auto 0;
214+
flex: 0 0 auto;
215+
font-size: 10.978px;
216+
white-space: nowrap;
209217
}
210218

211219
header#title-block-header ul {

make/ide/visualstudio/hotspot/src/classes/build/tools/projectcreator/FileTreeCreator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -54,7 +54,7 @@ public FileTreeCreator(Path startDir, Vector<BuildConfig> allConfigs, WinGammaPl
5454
attributes.push(new DirAttributes());
5555
}
5656

57-
public class DirAttributes {
57+
public static class DirAttributes {
5858

5959
private HashSet<BuildConfig> ignores;
6060
private HashSet<BuildConfig> disablePch;

make/jdk/src/classes/build/tools/intpoly/FieldGen.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -778,7 +778,7 @@ private String generate(FieldParams params) throws IOException {
778778
result.appendLine("}");
779779

780780
result.appendLine("@Override");
781-
result.appendLine("protected void mult(long[] a, long[] b, long[] r) {");
781+
result.appendLine("protected int mult(long[] a, long[] b, long[] r) {");
782782
result.incrIndent();
783783
for (int i = 0; i < 2 * params.getNumLimbs() - 1; i++) {
784784
result.appendIndent();
@@ -804,6 +804,9 @@ private String generate(FieldParams params) throws IOException {
804804
}
805805
}
806806
result.append(");\n");
807+
result.appendIndent();
808+
result.append("return 0;");
809+
result.appendLine();
807810
result.decrIndent();
808811
result.appendLine("}");
809812

@@ -833,7 +836,7 @@ private String generate(FieldParams params) throws IOException {
833836
// }
834837
// }
835838
result.appendLine("@Override");
836-
result.appendLine("protected void square(long[] a, long[] r) {");
839+
result.appendLine("protected int square(long[] a, long[] r) {");
837840
result.incrIndent();
838841
for (int i = 0; i < 2 * params.getNumLimbs() - 1; i++) {
839842
result.appendIndent();
@@ -874,6 +877,9 @@ private String generate(FieldParams params) throws IOException {
874877
}
875878
}
876879
result.append(");\n");
880+
result.appendIndent();
881+
result.append("return 0;");
882+
result.appendLine();
877883
result.decrIndent();
878884
result.appendLine("}");
879885

make/jdk/src/classes/build/tools/taglet/JSpec.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -30,6 +30,8 @@
3030
import java.util.Set;
3131
import java.util.regex.Matcher;
3232
import java.util.regex.Pattern;
33+
import java.util.stream.Collectors;
34+
3335
import javax.lang.model.element.Element;
3436

3537
import com.sun.source.doctree.DocTree;
@@ -157,7 +159,10 @@ public String toString(List<? extends DocTree> tags, Element elem) {
157159
continue;
158160
}
159161

160-
String tagText = contents.toString().trim();
162+
String tagText = contents.stream()
163+
.map(Object::toString)
164+
.collect(Collectors.joining())
165+
.trim();
161166
Matcher m = TAG_PATTERN.matcher(tagText);
162167
if (m.find()) {
163168
String chapter = m.group("chapter");

make/jdk/src/classes/build/tools/taglet/ToolGuide.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -30,6 +30,8 @@
3030
import java.util.Set;
3131
import java.util.regex.Matcher;
3232
import java.util.regex.Pattern;
33+
import java.util.stream.Collectors;
34+
3335
import javax.lang.model.element.Element;
3436
import javax.lang.model.element.PackageElement;
3537
import javax.lang.model.element.TypeElement;
@@ -105,8 +107,11 @@ public String toString(List<? extends DocTree> tags, Element elem) {
105107
continue;
106108
}
107109

108-
UnknownBlockTagTree blockTag = (UnknownBlockTagTree)tag;
109-
String tagText = blockTag.getContent().toString().trim();
110+
UnknownBlockTagTree blockTag = (UnknownBlockTagTree) tag;
111+
String tagText = blockTag.getContent().stream()
112+
.map(Object::toString)
113+
.collect(Collectors.joining())
114+
.trim();
110115
Matcher m = TAG_PATTERN.matcher(tagText);
111116
if (m.matches()) {
112117
String name = m.group("name");

make/modules/java.base/Java.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# new warning is added to javac, it can be temporarily added to the
2828
# disabled warnings list.
2929
#
30-
# DISABLED_WARNINGS_java +=
30+
DISABLED_WARNINGS_java += dangling-doc-comments
3131

3232
DOCLINT += -Xdoclint:all/protected \
3333
'-Xdoclint/package:java.*,javax.*'

make/modules/jdk.incubator.vector/Java.gmk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -23,4 +23,6 @@
2323
# questions.
2424
#
2525

26+
DISABLED_WARNINGS_java += dangling-doc-comments
27+
2628
DOCLINT += -Xdoclint:all/protected
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#
2+
# Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
3+
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4+
#
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
7+
# published by the Free Software Foundation. Oracle designates this
8+
# particular file as subject to the "Classpath" exception as provided
9+
# by Oracle in the LICENSE file that accompanied this code.
10+
#
11+
# This code is distributed in the hope that it will be useful, but WITHOUT
12+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+
# version 2 for more details (a copy is included in the LICENSE file that
15+
# accompanied this code).
16+
#
17+
# You should have received a copy of the GNU General Public License version
18+
# 2 along with this work; if not, write to the Free Software Foundation,
19+
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20+
#
21+
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22+
# or visit www.oracle.com if you need additional information or have any
23+
# questions.
24+
#
25+
26+
COPY += .txt

0 commit comments

Comments
 (0)