Skip to content

Commit 0eef9c5

Browse files
authored
Merge pull request oracle#553 from sid-srini/upgrade-nb28-plus
Upgrade to NetBeans 28 and nb-javac to jdk-26+27
2 parents bac2ee6 + 6a8dc87 commit 0eef9c5

File tree

9 files changed

+721
-413
lines changed

9 files changed

+721
-413
lines changed

THIRD_PARTY_LICENSES.txt

Lines changed: 19 additions & 290 deletions
Large diffs are not rendered by default.

build.xml

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -49,33 +49,17 @@
4949
<loadresource property="patch-files">
5050
<string>
5151
patches/6330.diff
52-
patches/7610.diff
5352
patches/8038-draft.diff
5453
patches/7893-draft.diff
5554
patches/8460-draft.diff
56-
patches/8662.diff
57-
patches/8664.diff
58-
patches/8690.diff
59-
patches/8694.diff
60-
patches/8745.diff
61-
patches/8748.diff
62-
patches/8760.diff
63-
patches/8770.diff
64-
patches/8762.diff
65-
patches/8769.diff
66-
patches/8797.diff
67-
patches/8816.diff
68-
patches/8821.diff
69-
patches/8827.diff
70-
patches/8828.diff
71-
patches/8829.diff
55+
patches/8856.diff
7256
patches/8897.diff
73-
patches/8856-draft.diff
74-
patches/8952-draft.diff
57+
patches/8952.diff
58+
patches/8968.diff
7559
patches/8974-draft.diff
7660
patches/8975.diff
77-
patches/8968.diff
7861
patches/9005-draft.diff
62+
patches/9044.diff
7963
patches/9062.diff
8064
patches/disable-error-notification.diff
8165
patches/mvn-sh.diff
@@ -84,7 +68,6 @@
8468
patches/rename-debugger.diff
8569
patches/remove-db.diff
8670
patches/nbjavac-not-required.diff
87-
patches/l10n-licence.diff
8871
patches/dev-dependency-licenses.diff
8972
patches/nb-telemetry.diff
9073
patches/gradle-files-scan-root.diff

netbeans

Submodule netbeans updated 2189 files
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
diff --git a/java/java.sourceui/src/org/netbeans/api/java/source/ui/ElementOpen.java b/java/java.sourceui/src/org/netbeans/api/java/source/ui/ElementOpen.java
2-
index f561cb51c8..81000c3ed9 100644
2+
index f561cb51c8cf..b69173fef503 100644
33
--- a/java/java.sourceui/src/org/netbeans/api/java/source/ui/ElementOpen.java
44
+++ b/java/java.sourceui/src/org/netbeans/api/java/source/ui/ElementOpen.java
5-
@@ -573,6 +573,10 @@ public final class ElementOpen {
5+
@@ -573,6 +573,11 @@ static void fillInTreePositions(CompilationInfo info, Tree forTree, Object[] tar
66
int[] span = null;
77
switch(forTree.getKind()) {
88
case CLASS:
99
+ if ((int) target[1] >= 0 && (int) target[2] == -1) {
10-
+ // Compact Source file (JEP 512) issue implicit class end position not found in code
10+
+ // Compact Source file (JEP 512) issue implicit class end position not found in code
11+
+ // see JDK-8364015
1112
+ target[2] = (int) info.getTrees().getSourcePositions().getEndPosition(cu, cu);
1213
+ }
1314
case INTERFACE:

patches/9044.diff

Lines changed: 676 additions & 0 deletions
Large diffs are not rendered by default.

patches/generate-dependencies.diff

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,3 @@
1-
diff --git a/java/java.lsp.server/build.xml b/java/java.lsp.server/build.xml
2-
index baa4e971cb..31e7cf3f33 100644
3-
--- a/java/java.lsp.server/build.xml
4-
+++ b/java/java.lsp.server/build.xml
5-
@@ -163,4 +163,49 @@
6-
<arg value="apisupport" />
7-
</exec>
8-
</target>
9-
+
10-
+ <target name="generate-netbeans-license-summary" depends="-set-use-jdk-javac,proxy-setup" description="Generate license summary">
11-
+ <delete dir="${build.dir}/nblic" />
12-
+ <mkdir dir="${build.dir}/nblic/nbcode" />
13-
+ <mkdir dir="${build.dir}/nblic/summary" />
14-
+
15-
+ <ant dir="nbcode" target="build-zip" inheritall="false" inheritrefs="false">
16-
+ <property name="nbplatform.default.netbeans.dest.dir" location="${nbplatform.default.netbeans.dest.dir}" />
17-
+ <property name="nbplatform.default.harness.dir" location="${nbplatform.default.harness.dir}" />
18-
+ <property name="nbantext.jar" location="${nbantext.jar}" />
19-
+ </ant>
20-
+ <unzip src="nbcode/dist/nbcode.zip" dest="${build.dir}/nblic/">
21-
+ </unzip>
22-
+
23-
+ <delete dir="${build.dir}/nblic/nbcode/nbcode" />
24-
+
25-
+ <taskdef name="createlicensesummary" classname="org.netbeans.nbbuild.extlibs.CreateLicenseSummary" classpath="${nbantext.jar}"/>
26-
+
27-
+ <property name="config.javadoc.all" value="" />
28-
+
29-
+ <taskdef name="resolvelist" classname="org.netbeans.nbbuild.ResolveList" classpath="${nbantext.jar}" />
30-
+ <resolvelist name="allmodules" path="modules.fullpath" dir="${nb_all}" list="${clusters.config.full.list}"/>
31-
+
32-
+ <createlicensesummary licenseStub="${nb_all}/LICENSE"
33-
+ noticeStub="${nb_all}/nbbuild/notice-stub.txt"
34-
+ report="${build.dir}/createlicensesummary.xml"
35-
+ nball="${nb_all}"
36-
+ build="${build.dir}/nblic/nbcode"
37-
+ license="${build.dir}/nblic/summary/LICENSE"
38-
+ notice="${build.dir}/nblic/summary/NOTICE"
39-
+ dependencies="${build.dir}/nblic/summary/DEPENDECIES"
40-
+ binary="true"
41-
+ excludes="${nb-extra-files}"
42-
+ includeAllFiles="true"
43-
+ />
44-
+ <concat destfile="${build.dir}/nblic/summary/NOTICE-ext">
45-
+ <header>Content of the NOTICE file:
46-
+
47-
+</header>
48-
+ <filelist dir="${build.dir}/nblic/summary" files="NOTICE"/>
49-
+ </concat>
50-
+ <concat destfile="${build.dir}/nblic/netbeans-third-party.txt">
51-
+ <filelist dir="${build.dir}/nblic/summary" files="LICENSE,NOTICE"/>
52-
+ </concat>
53-
+ </target>
54-
</project>
551
diff --git a/nbbuild/antsrc/org/netbeans/nbbuild/extlibs/CreateDependencies.java b/nbbuild/antsrc/org/netbeans/nbbuild/extlibs/CreateDependencies.java
562
index 2512043daf..eef8882085 100644
573
--- a/nbbuild/antsrc/org/netbeans/nbbuild/extlibs/CreateDependencies.java

patches/l10n-licence.diff

Lines changed: 0 additions & 27 deletions
This file was deleted.

patches/update-testng-7.11.0.diff

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/java/java.j2seproject/nbproject/project.properties b/java/java.j2seproject/nbproject/project.properties
2-
index dc44efa75d..525c4ecfc8 100644
2+
index 9f68c5272c..bfbc1e60c3 100644
33
--- a/java/java.j2seproject/nbproject/project.properties
44
+++ b/java/java.j2seproject/nbproject/project.properties
55
@@ -27,8 +27,8 @@ test.unit.run.cp.extra=${tools.jar}
@@ -216,15 +216,15 @@ index 0000000000..9d39755a86
216216
+===============================================
217217
+
218218
diff --git a/java/testng.ui/nbproject/project.xml b/java/testng.ui/nbproject/project.xml
219-
index 65c7364426..fe338b1acf 100644
219+
index fc2864d7df..d658c63b30 100644
220220
--- a/java/testng.ui/nbproject/project.xml
221221
+++ b/java/testng.ui/nbproject/project.xml
222222
@@ -109,7 +109,7 @@
223223
<compile-dependency/>
224224
<run-dependency>
225225
<release-version>1</release-version>
226226
- <specification-version>1.11</specification-version>
227-
+ <specification-version>1.45</specification-version>
227+
+ <specification-version>1.46</specification-version>
228228
</run-dependency>
229229
</dependency>
230230
<dependency>
@@ -325,15 +325,15 @@ index 11afdedbc4..49508b1507 100644
325325
URL url = null;
326326
try {
327327
diff --git a/java/testng/nbproject/project.xml b/java/testng/nbproject/project.xml
328-
index de6d32ff03..1bf62c3756 100644
328+
index 93b37bd39d..671653af8e 100644
329329
--- a/java/testng/nbproject/project.xml
330330
+++ b/java/testng/nbproject/project.xml
331331
@@ -92,7 +92,7 @@
332332
<compile-dependency/>
333333
<run-dependency>
334334
<release-version>1</release-version>
335335
- <specification-version>1.0</specification-version>
336-
+ <specification-version>1.45</specification-version>
336+
+ <specification-version>1.46</specification-version>
337337
</run-dependency>
338338
</dependency>
339339
<dependency>
@@ -444,10 +444,10 @@ index 1c30d02d29..66cabfb9c1 100644
444444
}
445445
}
446446
diff --git a/nbbuild/templates/common.xml b/nbbuild/templates/common.xml
447-
index 240ed93945..86153557a9 100644
447+
index 6de8195957..7da63ba169 100644
448448
--- a/nbbuild/templates/common.xml
449449
+++ b/nbbuild/templates/common.xml
450-
@@ -787,7 +787,7 @@
450+
@@ -796,7 +796,7 @@
451451
outputdir="${build.test.@{test.type}.results.dir}"
452452
workingDir="${build.test.@{test.type}.results.dir}"
453453
suitename="${code.name.base}"
@@ -456,7 +456,7 @@ index 240ed93945..86153557a9 100644
456456
jvm="${test.nbjdk.java}"
457457
>
458458
<classfileset dir="${build.test.@{test.type}.classes.dir}" excludes="${test.excludes}" includes="${test.includes}"/>
459-
@@ -890,7 +890,7 @@
459+
@@ -899,7 +899,7 @@
460460
outputdir="${build.test.@{test.type}.results.dir}"
461461
workingDir="${build.test.@{test.type}.results.dir}"
462462
suitename="${code.name.base}"
@@ -465,7 +465,7 @@ index 240ed93945..86153557a9 100644
465465
jvm="${test.nbjdk.java}"
466466
>
467467
<propertyset refid="test.@{test.type}.properties"/>
468-
@@ -919,7 +919,7 @@
468+
@@ -928,7 +928,7 @@
469469
outputdir="${build.test.@{test.type}.results.dir}"
470470
workingDir="${build.test.@{test.type}.results.dir}"
471471
suitename="${code.name.base}"
@@ -474,7 +474,7 @@ index 240ed93945..86153557a9 100644
474474
jvm="${test.nbjdk.java}"
475475
>
476476
<propertyset refid="test.@{test.type}.properties"/>
477-
@@ -1012,7 +1012,7 @@
477+
@@ -1021,7 +1021,7 @@
478478
<jvmarg value="-ea"/>
479479
<arg line="-mixed"/>
480480
<arg line="-d ${build.test.@{test.type}.results.dir}"/>
@@ -483,7 +483,7 @@ index 240ed93945..86153557a9 100644
483483
<arg line="-suitename ${code.name.base}"/>
484484
<arg line="-testname ${test.class}"/>
485485
<arg line="${testng.args.line}"/>
486-
@@ -1034,7 +1034,7 @@
486+
@@ -1043,7 +1043,7 @@
487487
outputdir="${build.test.@{test.type}.results.dir}"
488488
workingDir="${build.test.@{test.type}.results.dir}"
489489
suitename="${code.name.base}"
@@ -492,7 +492,7 @@ index 240ed93945..86153557a9 100644
492492
jvm="${test.nbjdk.java}"
493493
>
494494
<propertyset refid="test.@{test.type}.properties"/>
495-
@@ -1126,7 +1126,7 @@
495+
@@ -1135,7 +1135,7 @@
496496
outputdir="${build.test.@{test.type}.results.dir}"
497497
workingDir="${build.test.@{test.type}.results.dir}"
498498
suitename="${code.name.base}"
@@ -865,17 +865,17 @@ index 9d9366b8ed..494c4ae3d7 100644
865865
Manifest-Version: 1.0
866866
AutoUpdate-Show-In-Client: true
867867
OpenIDE-Module: org.netbeans.libs.testng/1
868-
-OpenIDE-Module-Specification-Version: 1.43
869-
+OpenIDE-Module-Specification-Version: 1.45
868+
-OpenIDE-Module-Specification-Version: 1.44
869+
+OpenIDE-Module-Specification-Version: 1.46
870870
OpenIDE-Module-Localizing-Bundle: org/netbeans/libs/testng/Bundle.properties
871871
diff --git a/platform/libs.testng/nbproject/org-netbeans-libs-testng.sig b/platform/libs.testng/nbproject/org-netbeans-libs-testng.sig
872-
index 3add7cf2b2..2b345b1c30 100644
872+
index 9bcfefd912..2b345b1c30 100644
873873
--- a/platform/libs.testng/nbproject/org-netbeans-libs-testng.sig
874874
+++ b/platform/libs.testng/nbproject/org-netbeans-libs-testng.sig
875875
@@ -1,5 +1,5 @@
876876
#Signature file v4.1
877-
-#Version 1.41
878-
+#Version 1.45
877+
-#Version 1.43
878+
+#Version 1.46
879879

880880
CLSS public abstract interface java.io.Serializable
881881

0 commit comments

Comments
 (0)