Update release notes, fixes #1930

This commit is contained in:
Andreas Dangel
2019-08-13 20:38:06 +02:00
parent 2ba1422747
commit 604ef548c9

View File

@ -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