471 Commits

Author SHA1 Message Date
Andreas Dangel
000f2e86fd [java] Fix more parsing errors after supporting String Templates 2023-08-10 15:36:30 +02:00
Andreas Dangel
41643dd020 [java] Avoid using Thread.fillInStackTrace() for token context
This requires to use the option TOKEN_MANAGER_USES_PARSER
2023-08-10 15:36:30 +02:00
Andreas Dangel
f4c86b25ae [java] Support Unnamed Classes and Instance Main Methods for Java 21 Preview
JEP 445
2023-08-10 15:36:29 +02:00
Andreas Dangel
216dd09405 [java] Support Unnamed Patterns and Variables for Java 21 Preview
JEP 443
2023-08-10 15:36:28 +02:00
Andreas Dangel
715d58fef3 [java] Support String Templates for Java 21 Preview
JEP 430
2023-08-10 15:36:28 +02:00
Andreas Dangel
2488107b23 [java] Update impl for record patterns for java 21
- renamed ASTComponentPatternList to ASTPatternList
2023-08-10 15:36:27 +02:00
Andreas Dangel
3bdb921548 [java] Update impl for pattern matching for switch for java 21
- renamed ASTSwitchGuard to ASTGuard
2023-08-10 15:36:27 +02:00
Clément Fournier
37e2f8f208 Improve jjt error messages 2023-03-19 22:57:51 +01:00
Andreas Dangel
cac5b15b56 [java] Fix build errors, update LanguageLevelChecker
- Update Java20PreviewTreeDumpTest to JUnit5
- Remove GuardedPatterns
- Don't use PatternExpression in case labels
- Update javadocs
2023-02-04 20:14:40 +01:00
Andreas Dangel
f30f904f9d Merge 'pmd6-java-20' into pmd7-java-20 2023-02-04 19:10:37 +01:00
Andreas Dangel
3ac021da02 [java] Remove support for named record patterns 2023-02-03 19:54:19 +01:00
Andreas Dangel
600ad870db [java] Support record patterns in for-each loops 2023-02-03 19:37:28 +01:00
Andreas Dangel
36fb459bd9 [java] Correct grammar regarding default case label
Update ExhaustiveSwitch so that it compiles with java 20. "case default" is not allowed anymore.
2023-02-03 17:09:58 +01:00
Andreas Dangel
1843ff51c7 [java] Simplify null case label grammar
Update DealingWithNull to that it compiles with java 20. Some cases are not allowed anymore.
2023-02-03 16:41:19 +01:00
Andreas Dangel
35a11574ed [java] Remove language version 18-preview 2023-02-03 15:49:19 +01:00
Andreas Dangel
c46a2d31bf [java] Add new language versions 20 and 20-preview 2023-02-03 14:55:43 +01:00
Andreas Dangel
120e89f81b Merge 'master' into pmd/7.0.x 2023-01-27 09:18:07 +01:00
Juan Martín Sotuyo Dodero
312ebc173d Allow the escapes new line sequence 2023-01-26 19:36:20 -03:00
Juan Martín Sotuyo Dodero
619e014d0d Properly define TEXT_BLOCK tokens 2023-01-26 18:59:55 -03:00
Juan Martín Sotuyo Dodero
390b040432 Fix TextBlock grammar 2023-01-26 16:43:30 -03:00
Clément Fournier
aeb4978676 Make isUpperBound return true for unbounded wildcard 2022-12-07 22:51:02 +01:00
Clément Fournier
08284c2af5 Merge branch '7.0.x' into text-utils-comments 2022-11-26 16:04:21 +01:00
Clément Fournier
9a5c2523f6 Fix pmd-java 2022-11-16 14:51:33 +01:00
Clément Fournier
d540f6fb14 Merge branch 'master' into pr/4194 2022-11-16 13:56:01 +01:00
Clément Fournier
735197cff4 Support other cases found in checkstyle 2022-11-07 00:44:22 +01:00
Clément Fournier
36f19eda92 Push actual annotation nodes
This is to avoid having rules like UnusedImports
fail to see an annotation usage. This makes the
tree rather messy when there are type annotations
though.
2022-11-06 22:39:38 +01:00
Clément Fournier
00c06343a5 Fix tests 2022-11-06 21:50:33 +01:00
Clément Fournier
2027d2f57f Support generic ctors 2022-11-05 17:05:46 +01:00
Clément Fournier
92ccf1b0ea Support array init with just a comma
Refs #3643
2022-11-05 16:31:17 +01:00
Clément Fournier
b39ba3c560 Add new tests
Refs #3643
2022-11-05 16:30:01 +01:00
Clément Fournier
cd075d2459 Fix #4152 - support type annotations in more places 2022-11-05 15:48:04 +01:00
Clément Fournier
63c01f0f5b Merge branch '7.0.x' into text-utils-javacc 2022-07-17 17:06:37 +02:00
Andreas Dangel
6c1bd0e82b [java] Fix grammar and tests for Java 19 2022-07-10 17:12:30 +02:00
Andreas Dangel
183a322d7c [java] Fix compile errors after merge 2022-07-10 15:33:32 +02:00
Andreas Dangel
ffbe5b7378 Merge branch 'pmd6-java-19' into pmd7-java-19 2022-07-10 15:05:35 +02:00
Andreas Dangel
b197daf84e Apply fixes from review (#4038) 2022-07-10 14:29:03 +02:00
Andreas Dangel
32a76bd602 [java] Remove language version 17-preview 2022-07-07 15:24:49 +02:00
Andreas Dangel
a5b68ddfcf [java] Add support for RecordPatterns
See JEP 405
2022-07-07 15:06:52 +02:00
Andreas Dangel
eeeccde494 [java] Update implementation for "Pattern Matching for switch"
See JEP 427
This is a preview feature
2022-07-07 15:03:20 +02:00
Andreas Dangel
eb53daa2c2 [java] Add new language versions 19 and 19-preview 2022-07-07 10:44:13 +02:00
Andreas Dangel
82dd4d46ca Merge branch 'master' into pmd/7.0.x 2022-05-26 11:21:38 +02:00
Clément Fournier
078345fbca Add phonetic extensions to other langs 2022-05-01 18:16:53 +02:00
Clément Fournier
b328bc5fdc Add more cjk and exotic scripts, also to JS
Fix #2605
2022-05-01 17:47:11 +02:00
Clément Fournier
98f44b7e3f Allow Phonetic Extensions block in java
Fix #3423
2022-05-01 17:31:52 +02:00
Clément Fournier
a9037215f7 Merge branch 'text-utils-javacc' into text-utils-comments 2022-04-30 21:29:23 +02:00
Clément Fournier
d1d2f30119 Remove some things from TextDocument 2022-04-30 16:06:40 +02:00
Clément Fournier
64b9b25bef Merge branch 'text-utils-simple' into text-utils-javacc 2022-04-24 10:58:33 +02:00
Clément Fournier
7bf44c69ac Replace package name with class name
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org>
2022-04-14 19:49:48 +02:00
Clément Fournier
0a5bf6f75f Merge branch 'text-utils-javacc' into text-utils-comments 2022-04-02 16:37:10 +02:00
Clément Fournier
a611af163b Merge branch 'text-utils-simple' into text-utils-javacc 2022-04-02 16:34:17 +02:00