Releases: javaparser/javaparser
Releases · javaparser/javaparser
javaparser-parent-3.28.0
Added
- [JEP 512] Add support for compact source files (PR #4940 by @johannescoetzee)
- [JEP 513] Add support for flexible constructor bodies (PR #4919 by @johannescoetzee)
- [JEP 511] Module Import Declarations (PR #4910 by @johannescoetzee)
- [JEP 467] Add support for MarkdownComments (PR #4899 by @johannescoetzee)
- Refactor comment hierarchy in preparation for MarkdownComments (PR #4885 by @johannescoetzee)
- Add support for match-all patterns (PR #4867 by @johannescoetzee)
Changed
- Improves issue 4188 resolution (PR #4934 by @jlerbsc)
- Add support for Java 23 and Java 24 (PR #4901 by @rpx99)
- Improved the code by removing code duplication from the method used to obtain methods declared in a class/interface/enumeration (PR #4883 by @jlerbsc)
Fixed
- Fix: issue 4890 Method call resolution fails for variadic reference-type parameters with primitive arguments (PR #4943 by @jlerbsc)
- Fix: issue 4941 Type variables are not correctly mapped when inheriting between generic interfaces (PR #4942 by @jlerbsc)
- Fix: issue 4188 UnsolvedSymbolException resolving MethocCallExpr using MethodReferenceExpr (PR #4931 by @jlerbsc)
- Fix grammar ambiguities causing crashes when using
assertandmoduleas names (PR #4929 by @johannescoetzee) - Fix: issue #3916 Method 'valueOf' cannot be resolved in context MyEnum.One.valueOf("") (PR #4916 by @jlerbsc)
- Adds the ability to use the word 'assert' prior to Java version 1.4 (PR #4915 by @jlerbsc)
- Fix: Simplify code and possibly improve the resolution of extended interfaces when using qualified names (PR #4882 by @jlerbsc)
- test: improve SourceRoot coverage and apply spotless formatting #4795 (PR #4881 by @Joyce-5)
- Fix #4864: Correct toString() output in ReflectionRecordDeclaration (PR #4879 by @ChenduanZhang)
- Include source file path in failed ParseResult when parsing via SourceRoot #4786 (PR #4874 by @JIN-RUI-LIU)
- Fixes unchecked warnings when calling Mockito.mock(Class) (PR #4413 by @matthieu-vergne)
Developer Changes
- fix(deps): update byte-buddy.version to v1.18.2 (PR #4906 by @renovate[bot])
- chore(deps): update actions/checkout action to v6 (PR #4900 by @renovate[bot])
- chore(deps): update actions/checkout action to v5.0.1 (PR #4892 by @renovate[bot])
- fix(deps): update dependency net.bytebuddy:byte-buddy-agent to v1.18.1 (PR #4889 by @renovate[bot])
- fix(deps): update dependency org.checkerframework:checker-qual to v3.52.0 (PR #4886 by @renovate[bot])
Uncategorised
- Add UnaryExpr, BinaryExpr, and some record/enum tests to improve overall test coverage (PR #4930 by @johannescoetzee)
❤️ Contributors
Thank You to all contributors who worked on this release!
javaparser-parent-3.27.1
Changed
- fix: switch expression improvement (PR #4823 by @seokjun7410)
Fixed
- Fix: Adjusts the range limits of lambda expression parameters to ignore brackets. (PR #4860 by @jlerbsc)
- Fix issue 4846 (PR #4855 by @PiTheGuy)
- Revert checkstyle plugin upgrade (PR #4836 by @jlerbsc)
- Fix: issue 4832 Resolving type of fully qualified varargs invocation throws IndexOutOfBoundsException (PR #4835 by @jlerbsc)
- Fix: Issue 4829 Infinite loop in DifferenceElementCalculator when calling setPermittedTypes (PR #4834 by @jlerbsc)
- XmlPrinter: fix duplicate attribute name in generated xml (PR #4806 by @sgqy)
- Use lambda parameter counts and block bodies for improved resolution (PR #4796 by @johannescoetzee)
- Fix issue #4791 (PR #4792 by @bannmann)
Developer Changes
- fix(deps): update dependency org.checkerframework:checker-qual to v3.51.1 (PR #4862 by @renovate[bot])
- chore(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.12.0 (PR #4843 by @renovate[bot])
- fix(deps): update dependency com.google.guava:guava to v33.5.0-jre (PR #4839 by @renovate[bot])
- chore(deps): update codecov/codecov-action action to v5.5.1 (PR #4827 by @renovate[bot])
- fix(deps): update dependency org.checkerframework:checker-qual to v3.50.0 (PR #4825 by @renovate[bot])
- chore(deps): update actions/setup-java action to v5 (PR #4822 by @renovate[bot])
- chore(deps): update actions/checkout action to v5 (PR #4811 by @renovate[bot])
- chore(deps): update dependency com.puppycrawl.tools:checkstyle to v11 (PR #4808 by @renovate[bot])
- chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.5.4 (PR #4701 by @renovate[bot])
Uncategorised
- Improves documentation on LexicalPreservingPrinter (PR #4820 by @jlerbsc)
- Improves documentation on the raw langage level (PR #4819 by @jlerbsc)
- Fix javadoc of Name class (PR #4789 by @bannmann)
- Fix NormalAnnotationExpr Javadoc (PR #4784 by @bannmann)
❤️ Contributors
Thank You to all contributors who worked on this release!
javaparser-parent-3.27.0
Developer Changes
- fix(deps): update dependency org.junit:junit-bom to v5.13.1 (PR #4775 by @renovate[bot])
- chore(deps): update dependency maven to v3.9.10 (PR #4774 by @renovate[bot])
- fix(deps): update dependency org.checkerframework:checker-qual to v3.49.4 (PR #4770 by @renovate[bot])
- fix(deps): update dependency org.junit:junit-bom to v5.13.0 (PR #4766 by @renovate[bot])
- chore(deps): update codecov/codecov-action action to v5.4.3 (PR #4755 by @renovate[bot])
- fix(deps): update dependency org.checkerframework:checker-qual to v3.49.3 (PR #4745 by @renovate[bot])
- chore(deps): update codecov/codecov-action action to v5.4.2 (PR #4731 by @renovate[bot])
- fix(deps): update dependency org.junit:junit-bom to v5.12.2 (PR #4728 by @renovate[bot])
- fix(deps): update dependency com.google.guava:guava to v33.4.7-jre (PR #4719 by @renovate[bot])
Uncategorised
- Fix resolution for method refs used as varargs (PR #4759 by @johannescoetzee)
- Fix IndexOutOfBoundsException resulting from empty varargs call as method usage (PR #4754 by @johannescoetzee)
- Fix resolution of lambdas used as varargs (PR #4752 by @johannescoetzee)
- Fix: issue 4747 Lexical preserving fails after replacing MarkerAnnotationExpr name (PR #4748 by @jlerbsc)
- Fix: issue 4503 Unable to find the method declaration corresponding to a method reference (PR #4739 by @jlerbsc)
- Fix issue 4724 Duplicate fields returned by JavaParserEnumDeclaration.getAllFields() (PR #4735 by @jlerbsc)
- Make some helper methods protected in DefaultPrettyPrinterVisitor (PR #4729 by @johanneskloos)
- Fix constructor resolution issue 4703 (PR #4727 by @johannescoetzee)
- Fix MethodAmbiguityException for methods with varargs (PR #4725 by @johannescoetzee)
- Fix range for cast expression with lambda child (PR #4721 by @johannescoetzee)
- Add Javadoc to the various parts of the DefaultPrettyPrinterVisitor (PR #4718 by @johanneskloos)
- Make JarTypeSolver and ReflectionTypeSolver a bit more versatile. (PR #4716 by @johanneskloos)
- Fix formatting issues (PR #4715 by @jlerbsc)
- Fix Switch toString to LexicalPreservingPrinter when configured (PR #4712 by @jlerbsc)
- Fix: issue 4697 Updating the com.google.guava:guava dependency to v334.5-jre fails. (PR #4711 by @jlerbsc)
- Implement MethodResolutionCapability in JavassistRecordDeclaration (PR #4709 by @johanneskloos)
- Fix: issue 4707 Upgrading from junit 5.11.4 -> 5.12.1 causes junit exception (PR #4708 by @jlerbsc)
- Fix for #3710 by cutting off resolution loops involving object creation steps. (PR #4704 by @johanneskloos)
- [SECURITY] Fix Zip Slip Vulnerability (PR #3684 by @JLLeitschuh)
❤️ Contributors
Thank You to all contributors who worked on this release!
javaparser-parent-3.26.4
Developer Changes
- fix(deps): update byte-buddy.version to v1.17.5 (PR #4702 by @renovate[bot])
- chore(deps): update dependency com.puppycrawl.tools:checkstyle to v10.22.0 (PR #4700 by @renovate[bot])
- chore(deps): update dependency org.apache.maven.plugins:maven-install-plugin to v3.1.4 (PR #4689 by @renovate[bot])
- chore(deps): update codecov/codecov-action action to v5.4.0 (PR #4688 by @renovate[bot])
- chore(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.1.4 (PR #4687 by @renovate[bot])
- chore(deps): update dependency com.diffplug.spotless:spotless-maven-plugin to v2.44.3 (PR #4682 by @renovate[bot])
- chore(deps): update dependency org.apache.maven.plugins:maven-clean-plugin to v3.4.1 (PR #4681 by @renovate[bot])
- chore(deps): update dependency org.assertj:assertj-core to v3.27.2 (PR #4644 by @renovate[bot])
- fix(deps): update dependency com.google.guava:guava to v33.4.0-jre (PR #4637 by @renovate[bot])
Uncategorised
- Fix: issue 4554 Import added through CompilationUnit.addImport should not have a range (PR #4693 by @jlerbsc)
- Improving documentation on SwithEntry (PR #4685 by @jlerbsc)
- Fix issue 4670 LexicalPreservingPrinter removed incorect token when removing modifier of a Parameter with annotations (PR #4674 by @jlerbsc)
- Fix: issue 4668 Issue with FieldAccessExpr resolving for custom class (PR #4671 by @jlerbsc)
- #4664 remove misleading javadoc (PR #4666 by @verhasi)
- #4653 use report-aggregate of jacoco instead of report to use the dep… (PR #4658 by @verhasi)
❤️ Contributors
Thank You to all contributors who worked on this release!
javaparser-parent-3.26.3
Changed
- Fixes #4599 making B.class for testing non-empty (PR #4600 by @JiriOndrusek)
Fixed
- Fix: issue 3990 Local Enum and Interface (Java 16) (PR #4626 by @jlerbsc)
- Fix bug in
VisitorSet.toString()(PR #4615 by @Laughh) - Fix issue #4607: don't forget to clone guard when cloning stmt.SwitchEntry (PR #4608 by @DaniilSuchkov)
- Fixed return within void method (PR #4587 by @Universe-E)
- Fix: issue 4579 Switch expr and var incompatibility (PR #4581 by @jlerbsc)
- Fix: issue 4568 Resolution of ObjectCreationExprs broken (PR #4577 by @jlerbsc)
- Fix issue 4560 Does not solve String.format on multiline strings (PR #4561 by @jlerbsc)
Developer Changes
- fix(deps): update byte-buddy.version to v1.15.11 (PR #4635 by @renovate[bot])
- chore(deps): update codecov/codecov-action action to v5.1.0 (PR #4629 by @renovate[bot])
- chore(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.11.1 (PR #4605 by @renovate[bot])
- chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.5.2 (PR #4604 by @renovate[bot])
- chore(deps): update actions/checkout action to v4.2.2 (PR #4594 by @renovate[bot])
- chore(deps): update junit5 monorepo to v5.11.3 (PR #4589 by @renovate[bot])
- fix(deps): update dependency net.bytebuddy:byte-buddy-agent to v1.15.5 (PR #4586 by @renovate[bot])
- fix(deps): update dependency com.google.guava:guava to v33.3.1-jre (PR #4558 by @renovate[bot])
- chore(deps): update dependency org.hamcrest:hamcrest to v3 (PR #4510 by @renovate[bot])
Uncategorised
❤️ Contributors
Thank You to all contributors who worked on this release!
javaparser-parent-3.26.2
Changed
- Move formatting workflows into separate file (PR #4480 by @johannescoetzee)
- Exclude unavailable macos <-> java version combinations from github tests (PR #4479 by @johannescoetzee)
Fixed
- Fixes #4526. Fix Node.PostOrderIterator for roots without children (PR #4538 by @ktul)
- Add missing copyright notice to RecordPatternExpr.java (PR #4527 by @johannescoetzee)
- Add missing type erasure in ClassOrInterfaceType.toDescriptor (PR #4522 by @johanneskloos)
- Allow primitive types for patterns (PR #4506 by @johannescoetzee)
- Fix project formatting (PR #4499 by @johannescoetzee)
- Fix: issue 4492 resolve LambdaExpr has NullPointException (PR #4497 by @jlerbsc)
- Fix: issue 2738 UnsolvedSymbolException while trying to ResolvedMethodDeclaration from MethodCallExpr (PR #4482 by @jlerbsc)
Developer Changes
- fix(deps): update byte-buddy.version to v1.15.1 (PR #4547 by @renovate[bot])
- fix(deps): update byte-buddy.version to v1.15.0 (PR #4543 by @renovate[bot])
- fix(deps): update dependency com.google.guava:guava to v33.3.0-jre (PR #4532 by @renovate[bot])
- fix(deps): update dependency net.bytebuddy:byte-buddy-agent to v1.14.19 (PR #4531 by @renovate[bot])
- chore(deps): update junit5 monorepo to v5.11.0 (PR #4528 by @renovate[bot])
- fix(deps): update byte-buddy.version to v1.14.18 (PR #4493 by @renovate[bot])
- chore(deps): update actions/checkout action to v4.1.7 (PR #4486 by @renovate[bot])
- chore(deps): update actions/checkout action to v4.0.0 (PR #4485 by @renovate[bot])
- chore(deps): update junit5 monorepo to v5.10.3 (PR #4483 by @renovate[bot])
Uncategorised
- Add better instructions for re-formatting the project (PR #4540 by @johannescoetzee)
❤️ Contributors
Thank You to all contributors who worked on this release!
javaparser-parent-3.26.1
Added
- Fix record declarations nested in annotation declarations (PR #4460 by @johannescoetzee)
Changed
- Format code with spotless (PR #4465 by @johannescoetzee)
- Simplifying the search for types in compilation unit (PR #4459 by @jlerbsc)
- Add spotless plugin configuration (PR #4409 by @johannescoetzee)
Fixed
- Disable spotless ratcheting and fix formatting (PR #4478 by @johannescoetzee)
- Fix: issue 4450 Endless recursion (-> StackOverflow) with cyclic static references (PR #4477 by @jlerbsc)
- Fix: issue 4399 MethodCallExpr inside lambda in assignment expression cannot be resolved (PR #4462 by @jlerbsc)
- Fix crash on SwitchExpr entries if tokens are not stored (PR #4461 by @johannescoetzee)
- Fix lookahead for pattern expression in switch entries [Issue 4455] (PR #4458 by @johannescoetzee)
Developer Changes
- Automatically format code after codegen and validate with a github action (PR #4468 by @johannescoetzee)
- Add git-blame-ignore-revs file to ignore the reformatting commit in git blame (PR #4466 by @johannescoetzee)
Uncategorised
- Add link to the guide to adding nodes in CONTRIBUTING.md (PR #4453 by @johannescoetzee)
❤️ Contributors
Thank You to all contributors who worked on this release!
javaparser-parent-3.26.0
Added
- [JEP 440] Add support for record patterns (PR #4432 by @johannescoetzee)
- PatternExpr -> TypePatternExpr refactor in preparation for record pattern implementation (PR #4387 by @johannescoetzee)
- [JEP441] Add support for switch pattern matching (PR #4375 by @johannescoetzee)
- Add support for
case null, defaultin switch and fix concrete syntax model for new switch syntax (PR #4364 by @johannescoetzee)
Changed
- Fixes SYSTEM_EOL warnings (PR #4412 by @matthieu-vergne)
- Refact: Adds a find node by range method in Node class (PR #4377 by @jlerbsc)
Fixed
- Fix: issue 3277 StackOverflow issue while parse MethodCallExpr/FieldAccessExpr, their ancestor/child node is ObjectCreation expression which contain .new (PR #4447 by @jlerbsc)
- Fix expressions in the body of switch expression entries (Issue 4440) (PR #4446 by @johannescoetzee)
- Fix: issue 4442 LexicalPreservingPrinter does not support unexpected token (PR #4444 by @jlerbsc)
- Fix: issue 3100 JavaSymbolSolver unable to resolve an inner class defined in a base class (PR #4441 by @jlerbsc)
- Fix: 4330 Method 'forEach' cannot be resolved in certain context (PR #4436 by @jlerbsc)
- Fix: 'permits' and 'sealed' Contextual keyworlds usage (PR #4434 by @jlerbsc)
- Fixes an error in jbehave tests when they are run in a Windows os (PR #4433 by @jlerbsc)
- Make resolution of implements and extends types start with the parent… (PR #4430 by @eldapiiro)
- Fix: solveMethodAsUsage() for implicit method ::values() (PR #4424 by @Kimmmey)
- Fix: ::values() is a static method, was not static (PR #4417 by @Kimmmey)
- Fix missed generated code from PatternExpr refactor (PR #4414 by @johannescoetzee)
- Fixes #4410 (PR #4411 by @matthieu-vergne)
- Fix issue 2368 Unable to calculate the type of a varargs parameter (PR #4402 by @jlerbsc)
- Fix: Fixes the version currently supported by Javaparser. (PR #4393 by @jlerbsc)
- ?? make mvnw command runnable by copy-pasting (PR #4382 by @cravingPixels)
Developer Changes
- chore(deps): bump actions/checkout from 4.1.4 to 4.1.5 (PR #4415 by @dependabot[bot])
- Minor refactoring on Concrete syntax model (PR #4405 by @jlerbsc)
- chore(deps): bump actions/checkout from 4.1.2 to 4.1.3 (PR #4381 by @dependabot[bot])
Uncategorised
❤️ Contributors
Thank You to all contributors who worked on this release!
javaparser-parent-3.25.10
Fixed
- Fix issue 4345 Strange error when trying to find erasure of generic t… (PR #4362 by @jlerbsc)
- fix: issue 4358 prevent infinite cycles with static imports (PR #4359 by @kdunee)
- Refactor
ResolvedReferenceType#equals(PR #4351 by @freya022) - fix: issue 4331 Cannot be 'abstract' and also 'private'. for a private method in an interface (PR #4332 by @jlerbsc)
Developer Changes
- chore(deps): bump actions/checkout from 4.1.1 to 4.1.2 (PR #4341 by @dependabot[bot])
❤️ Contributors
Thank You to all contributors who worked on this release!
Release javaparser-parent-3.25.9
[maven-release-plugin] prepare release javaparser-parent-3.25.9