From 2c8524866cc5bb00f35b4c21a5a86c2a19645176 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Sotuyo=20Dodero?= Date: Tue, 19 Jul 2022 23:17:39 -0300 Subject: [PATCH 1/2] [core] Allow building PMD under Java 18+ - Tests would fail due to the internal usage of SecurityManager without this flag --- pom.xml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c035edbedc..a0e42d3294 100644 --- a/pom.xml +++ b/pom.xml @@ -103,7 +103,8 @@ UTF-8 https://pmd.github.io/pmd - -Xmx512m -Dfile.encoding=${project.build.sourceEncoding} + -Xmx512m -Dfile.encoding=${project.build.sourceEncoding} ${extraArgLine} + 18 @@ -1008,6 +1009,17 @@ + + Java 18+ + + [18,) + + + + -Djava.security.manager=allow + + + pmd-release From 49835cb990355438aa8433c1cf832eb4110e703d Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Mon, 25 Jul 2022 19:03:45 +0200 Subject: [PATCH 2/2] [doc] Update release notes (#4053) --- docs/pages/release_notes.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/pages/release_notes.md b/docs/pages/release_notes.md index 56690a23a0..4da81b2bb1 100644 --- a/docs/pages/release_notes.md +++ b/docs/pages/release_notes.md @@ -43,6 +43,7 @@ Being based on a proper Antlr grammar, CPD can: ### Fixed Issues * core * [#4031](https://github.com/pmd/pmd/issues/4031): \[core] If report is written to stdout, stdout should not be closed + * [#4053](https://github.com/pmd/pmd/pull/4053): \[core] Allow building PMD under Java 18+ * java * [#4015](https://github.com/pmd/pmd/issues/4015): \[java] Support JDK 19 * java-bestpractices