Skip to content

Commit 2f77c6d

Browse files
committed
Bump java cluster to javac.release 17
migrate remaining modules of the java cluster from javac source to release flag and consolidate on one version many core modules, including editor, maven, gradle were already using release 17, this migrates the rest. skipped test data, performance module and non trivial upgrades like java.hints.declarative, debugger.jpda.visual and form. removed -Xlint:-options flag since "target value 8 is obsolete and will be removed" won't occur anymore moving away from the java 8 target unlocks JDK optimizations due to the invokedynamic bytecode instruction and javac deprecation warnings release is also safer compared to source/target, we can use newer API etc
1 parent 332ec88 commit 2f77c6d

File tree

120 files changed

+123
-123
lines changed

Some content is hidden

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

120 files changed

+123
-123
lines changed

apisupport/apisupport.ant/test/unit/src/org/netbeans/modules/apisupport/project/queries/SourceLevelQueryImplTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ public void testGetSourceLevel() {
3737
String path = "java/junit/src/org/netbeans/modules/junit/api/JUnitSettings.java";
3838
FileObject f = nbRoot().getFileObject(path);
3939
assertNotNull("found " + path, f);
40-
assertEquals("1.8 used for an average module", "1.8", SourceLevelQuery.getSourceLevel(f));
40+
String expected = "17"; // must be bumped on module lang level updates
41+
assertEquals(expected + " used for an average module", expected, SourceLevelQuery.getSourceLevel(f));
4142
}
4243

4344
}

java/ant.browsetask/nbproject/project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# under the License.
1717

1818
ant.jar=${ant.core.lib}
19-
javac.source=1.8
19+
javac.release=17
2020
javadoc.arch=${basedir}/arch.xml
2121

2222
# web.browser.api.dir is sometimes not set during the build (eg. nbms-and-javadoc build)

java/ant.debugger/nbproject/project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# under the License.
1717

1818
javac.compilerargs=-Xlint -Xlint:-serial
19-
javac.source=1.8
19+
javac.release=17
2020
spec.version.base=1.67.0
2121
test.unit.run.cp.extra=${tools.jar}
2222
# Make the debugger find it, even if it is not on the startup debug classpath:

java/ant.freeform/nbproject/project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# under the License.
1717

1818
javac.compilerargs=-Xlint -Xlint:-serial
19-
javac.source=1.8
19+
javac.release=17
2020
javadoc.arch=${basedir}/arch.xml
2121
javadoc.apichanges=${basedir}/apichanges.xml
2222

java/ant.grammar/nbproject/project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
is.eager=true
1919
javac.compilerargs=-Xlint -Xlint:-serial
20-
javac.source=1.8
20+
javac.release=17
2121
javadoc.arch=${basedir}/arch.xml
2222
test.unit.cp.extra=
2323
test.unit.run.cp.extra=

java/ant.hints/nbproject/project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
# under the License.
1717

1818
is.eager=true
19-
javac.source=1.8
19+
javac.release=17

java/api.debugger.jpda/nbproject/project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
is.autoload=true
1919
cp.extra=${tools.jar}:${jpda.classes.dir}
2020
javac.compilerargs=-Xlint:unchecked
21-
javac.source=1.8
21+
javac.release=17
2222
javadoc.arch=${basedir}/arch.xml
2323
javadoc.apichanges=${basedir}/apichanges.xml
2424
jpda.classes.dir=${build.dir}/jpda/classes/

java/api.java/nbproject/project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
is.autoload=true
1919
javac.compilerargs=-Xlint:unchecked
20-
javac.source=1.8
20+
javac.release=17
2121
javadoc.apichanges=${basedir}/apichanges.xml
2222
javadoc.arch=${basedir}/arch.xml
2323
test.unit.run.cp.extra=${o.n.core.dir}/lib/boot.jar:${o.n.core.dir}/core/core.jar

java/api.maven/nbproject/project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# under the License.
1717

1818
is.autoload=true
19-
javac.source=1.8
19+
javac.release=17
2020
javac.compilerargs=-Xlint -Xlint:-serial
2121
javadoc.apichanges=${basedir}/apichanges.xml
2222
javadoc.arch=${basedir}/arch.xml

java/beans/nbproject/project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717
javac.compilerargs=-Xlint -Xlint:-serial
18-
javac.source=1.8
18+
javac.release=17
1919
spec.version.base=1.81.0
2020

2121

0 commit comments

Comments
 (0)