Skip to content

[java] Add support for java 14#2318

Merged
oowekyala merged 34 commits into
pmd:masterfrom
adangel:java14
Mar 2, 2020
Merged

[java] Add support for java 14#2318
oowekyala merged 34 commits into
pmd:masterfrom
adangel:java14

Conversation

@adangel

@adangel adangel commented Feb 27, 2020

Copy link
Copy Markdown
Member
  • Java 14 is the new default version for java
  • There is a new java 14 preview version
  • Switch Expressions are supported in java 14
  • ASM is updated
  • Text Block for java 14 preview
  • Pattern matching for instance of
  • Records
  • Remove java 12 preview and break-with-return
  • Release notes

Fixes #2159

Limitations:

  • Variables that are bound to a pattern, are not available in the symbol table
  • The symbol table knows nothing about the fields of a record type

@ghost

ghost commented Feb 27, 2020

Copy link
Copy Markdown
1 Warning
⚠️ This PR cannot be merged yet.
✅ Well done.
This changeset introduces 0 new violations, 16 new errors and 0 new configuration errors,
removes 0 violations, 16 errors and 0 configuration errors.
Full report
This changeset introduces 0 new violations, 16 new errors and 0 new configuration errors,
removes 0 violations, 16 errors and 0 configuration errors.
Full report
This changeset introduces 0 new violations, 16 new errors and 0 new configuration errors,
removes 0 violations, 16 errors and 0 configuration errors.
Full report
This changeset introduces 0 new violations, 16 new errors and 0 new configuration errors,
removes 0 violations, 16 errors and 0 configuration errors.
Full report
This changeset introduces 0 new violations, 15 new errors and 0 new configuration errors,
removes 0 violations, 15 errors and 0 configuration errors.
Full report
This changeset introduces 0 new violations, 15 new errors and 0 new configuration errors,
removes 0 violations, 15 errors and 0 configuration errors.
Full report
This changeset introduces 0 new violations, 15 new errors and 0 new configuration errors,
removes 0 violations, 15 errors and 0 configuration errors.
Full report

Generated by 🚫 Danger

Comment thread pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTLiteral.java Outdated
Comment thread pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTLiteral.java Outdated
Comment thread pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTLiteral.java Outdated
@adangel adangel marked this pull request as ready for review February 28, 2020 18:51
@adangel adangel added this to the 6.22.0 milestone Feb 28, 2020
Comment thread pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTRecordBody.java Outdated
@adangel adangel added the in:ast About the AST structure or API, the parsing step label Feb 29, 2020

@oowekyala oowekyala left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks ready, thanks for your work on this! Merging this onto java-grammar will probably not be easy. I think, it should be done before merging #2300

Comment thread pmd-java/etc/grammar/Java.jjt
@oowekyala oowekyala merged commit fc0b437 into pmd:master Mar 2, 2020
@adangel adangel deleted the java14 branch March 2, 2020 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in:ast About the AST structure or API, the parsing step

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[java] Prepare for JDK 14

2 participants