From 604ef548c9d4f35cef988c103c37cf7174a26594 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Tue, 13 Aug 2019 20:38:06 +0200 Subject: [PATCH] Update release notes, fixes #1930 --- docs/pages/release_notes.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/pages/release_notes.md b/docs/pages/release_notes.md index 2c69800aaa..84d3c3281c 100644 --- a/docs/pages/release_notes.md +++ b/docs/pages/release_notes.md @@ -14,6 +14,24 @@ This is a {{ site.pmd.release_type }} release. ### New and noteworthy +#### Java 13 Support + +This release of PMD brings support for Java 13. PMD can parse [Switch Expressions](http://openjdk.java.net/jeps/354) +with the new `yield` statement and resolve the type of such an expression. + +PMD also parses [Text Blocks](http://openjdk.java.net/jeps/355) as String literals. + +Note: The Switch Expressions and Text Blocks are a preview language feature of OpenJDK 13 +and are not enabled by default. In order to +analyze a project with PMD that uses these language features, you'll need to enable it via the environment +variable `PMD_JAVA_OPTS`: + + export PMD_JAVA_OPTS=--enable-preview + ./run.sh pmd ... + +Note: Support for the extended break statement introduced in Java 12 as a preview language feature +has been removed. + #### New rule designer documentation The documentation for the rule designer is now available on the main PMD documentation page: @@ -22,6 +40,8 @@ about the usage and features of the rule designer. ### Fixed Issues +* java + * [#1930](https://github.com/pmd/pmd/issues/1930): \[java] Add Java 13 support * java-codestyle * [#1951](https://github.com/pmd/pmd/issues/1951): \[java] UnnecessaryFullyQualifiedName rule triggered when variable name clashes with package name