diff --git a/pljava-api/src/main/java/org/postgresql/pljava/annotation/processing/DDRProcessor.java b/pljava-api/src/main/java/org/postgresql/pljava/annotation/processing/DDRProcessor.java index ccd2a8a7f..465f5ddf4 100644 --- a/pljava-api/src/main/java/org/postgresql/pljava/annotation/processing/DDRProcessor.java +++ b/pljava-api/src/main/java/org/postgresql/pljava/annotation/processing/DDRProcessor.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004-2023 Tada AB and other contributors, as listed below. + * Copyright (c) 2004-2024 Tada AB and other contributors, as listed below. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the The BSD 3-Clause License @@ -173,7 +173,7 @@ public SourceVersion getSupportedSourceVersion() * Update latest_tested to be the latest Java release on which this * annotation processor has been tested without problems. */ - int latest_tested = 21; + int latest_tested = 22; int ordinal_9 = SourceVersion.RELEASE_9.ordinal(); int ordinal_latest = latest_tested - 9 + ordinal_9; diff --git a/pljava-pgxs/pom.xml b/pljava-pgxs/pom.xml index 79660f0de..b3d3de753 100644 --- a/pljava-pgxs/pom.xml +++ b/pljava-pgxs/pom.xml @@ -40,20 +40,15 @@ - nashorngone + nashornmod [15,) - org.graalvm.js - js - 20.1.0 - - - org.graalvm.js - js-scriptengine - 20.1.0 + org.openjdk.nashorn + nashorn-core + 15.4 diff --git a/pljava-so/src/main/c/Backend.c b/pljava-so/src/main/c/Backend.c index 9b70c28c1..30569c2e0 100644 --- a/pljava-so/src/main/c/Backend.c +++ b/pljava-so/src/main/c/Backend.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004-2023 Tada AB and other contributors, as listed below. + * Copyright (c) 2004-2024 Tada AB and other contributors, as listed below. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the The BSD 3-Clause License @@ -1941,10 +1941,10 @@ void Backend_warnJEP411(bool isCommit) "Java features that will be phased out in future Java versions. " "Those changes will come in releases after Java 17."), errhint( - "For migration planning, Java versions up to and including 17 " - "remain fully usable with this version of PL/Java, and Java 17 " - "is positioned as a long-term support release. For details on " - "how PL/Java will adapt, please bookmark " + "For migration planning, this version of PL/Java can still " + "enforce policy in Java versions up to and including 22, " + "and Java 17 and 21 are positioned as long-term support releases. " + "For details on how PL/Java will adapt, please bookmark " "https://github.com/tada/pljava/wiki/JEP-411") )); } diff --git a/pom.xml b/pom.xml index 7be7fe97c..286bd250f 100644 --- a/pom.xml +++ b/pom.xml @@ -70,45 +70,20 @@ - nashorngone + nashornmod [15,) - - org.codehaus.mojo - properties-maven-plugin - 1.0.0 - - - initialize - - set-system-properties - - - - - true - - - - - - org.apache.maven.plugins maven-antrun-plugin - org.graalvm.js - js - 20.1.0 - - - org.graalvm.js - js-scriptengine - 20.1.0 + org.openjdk.nashorn + nashorn-core + 15.4 diff --git a/src/site/markdown/use/policy.md b/src/site/markdown/use/policy.md index 566743c49..9d0e3f800 100644 --- a/src/site/markdown/use/policy.md +++ b/src/site/markdown/use/policy.md @@ -372,11 +372,16 @@ release, so relying on it is not recommended. The developers of Java have elected to phase out important language features used by PL/Java to enforce policy. The changes will come in releases after -Java 17. For migration planning, Java versions up to and including 17 -remain fully usable with this version of PL/Java, and Java 17 -is positioned as a long-term support release. For details on -how PL/Java will adapt, please bookmark [the JEP 411 topic][jep411] -on the PL/Java wiki. +Java 17. For migration planning, this version of PL/Java can still enable +policy enforcement in Java versions up to and including 22, and Java 17 and 21 +are positioned as long-term support releases. (There is a likelihood, +increasing with later Java versions, even before policy stops being enforceable, +that some internal privileged operations by Java itself, or other libraries, +will cease to work transparently, and may have to be manually added to a site's +PL/Java policy.) + +For details on how PL/Java will adapt, please bookmark +[the JEP 411 topic][jep411] on the PL/Java wiki. [pfsyn]: https://docs.oracle.com/en/java/javase/14/security/permissions-jdk1.html#GUID-7942E6F8-8AAB-4404-9FE9-E08DD6FFCFFA