Javaparser Versions Save

Java 1-18 Parser and Abstract Syntax Tree for Java with advanced analysis functionalities.

javaparser-parent-3.25.10

1 month ago

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

:heart: Contributors

Thank You to all contributors who worked on this release!

javaparser-parent-3.25.9

2 months ago

javaparser-parent-3.25.8

4 months ago

Added

  • feat: creates cache statistics and moves Cache interface to javaparser-core (PR #4278 by @jlerbsc)
  • feat: Add parseArrayInitializerExpr to JavaParser API (PR #4276 by @iMashtak)
  • feat: A visitor looking for a node by its position in an AST (PR #4258 by @jlerbsc)

Changed

  • fix: Partial removal of the use of instanceof in favour of the use of the API (PR #4280 by @jlerbsc)
  • [GHA] Run on java 18 (PR #4252 by @hazendaz)

Fixed

  • fix: issue 4240 Calling resolve on catch block parameter throws exception (PR #4279 by @jlerbsc)
  • Fix: issue 4270 Exception when resolving ObjectCreationExpr with nested varargs (PR #4273 by @jlerbsc)
  • add Java_18 to yieldSupport (PR #4262 by @Kimmmey)
  • fix: issue #4245 UnsupportedOperationException with LexicalPreservingPrinter when removing a sealed modified (PR #4253 by @jlerbsc)
  • [ci] Fix change log released version as 3.25.7 (PR #4251 by @hazendaz)
  • Fix: issue 3278 Lazy types cause stack overflow when trying to find the least upper bound type (PR #4246 by @jlerbsc)

Developer Changes

Uncategorised

  • Revert "Refactoring: Move cache features to javaparser-core" (PR #4274 by @jlerbsc)

:heart: Contributors

Thank You to all contributors who worked on this release!

javaparser-parent-3.25.7

5 months ago

Added

  • [GHA] Remove old comment that is no longer valid around jdks and add jdk 17 (PR #4226 by @hazendaz)
  • Fix: issue 3833 No enum constant com.github.javaparser.ParserConfiguration.LanguageLevel.JAVA_18 (PR #4221 by @jlerbsc)

Changed

  • Refactoring: Move cache features to javaparser-core (PR #4238 by @jlerbsc)
  • Fix: removes reference to coveralls plugin which is not useful because codecov is used to track code coverage (PR #4235 by @jlerbsc)
  • Uses jakarta.json api, upgrades jakarta.json-api to the latest version & uses new default Eclipse Parsson (PR #4234 by @jlerbsc)
  • Move mockito to 4.11.0 and handle byte buddy consistently as well as properly define its agent in argLine for surefire (PR #4228 by @hazendaz)
  • Cleanup poms, use jakarta provided (javax namespace), hamcrest follow up, and switch coveralls plugin - Fixes #4111 (PR #4225 by @hazendaz)
  • [pom] Switch from hamcrest-library (deprecated) to hamcrest (PR #4200 by @hazendaz)
  • Putting code in the .orElse that has a side effect that can affect performance (PR #4199 by @jlerbsc)

Fixed

  • Fix: issue 3650 unreproducible MAVEN_BUILD_TIMESTAMP (PR #4243 by @jlerbsc)
  • Fix: issue 3972 StackOverflowError when resolving type of scope of a MethodCall (PR #4236 by @jlerbsc)
  • [fix] Jdk 18 enum stub was extended off java 16 post processor not java17 (PR #4227 by @hazendaz)
  • Fix: issue #4047 Symbol Solver mixes name with type (PR #4206 by @jlerbsc)
  • Fix grammar (PR #4203 by @mernst)
  • Minor changes : corrupted format, useless cast, javadoc (PR #4198 by @jlerbsc)

Developer Changes

Uncategorised

:heart: Contributors

Thank You to all contributors who worked on this release!

javaparser-parent-3.25.6

6 months ago

Changed

Fixed

  • Fix: issue #2751 new HashSet()" != "new HashSet<>() (PR #4183 by @lcbarcellos)
  • Fixes #2625 Add messages to thrown exceptions (PR #4177 by @oannhpham)
  • Fix: issue 4163 Calling MethodDeclaration.getDeclarationAsString leads to MethodDelaration.getComment returning no comment (PR #4165 by @jlerbsc)
  • Fix: issue 3673 isAssignableBy method StackOverflowError (PR #4156 by @jlerbsc)
  • fix: issue 3184 Unable to get the resolved type of class ResolvedReferenceType from T (PR #4147 by @jlerbsc)
  • Fix: issue #3269 Test resources containing included interfaces do not compile (PR #4139 by @jlerbsc)
  • CalculateResolvedType Type error (PR #4138 by @jlerbsc)
  • Fix: issue #4036 LeastUpperBoundLogic.lub returns null when matches ConditionalExpr (PR #4137 by @jlerbsc)
  • Fix: issue #2484 SymbolResolver on MethodCallExpr fails if method parameter is of kind Class<? extends y> (PR #4136 by @jlerbsc)

Developer Changes

:heart: Contributors

Thank You to all contributors who worked on this release!

javaparser-parent-3.25.5

8 months ago

Added

  • fix: issue 4115 ResolvedUnionType should give access to a list of resolved types (PR #4119 by @jlerbsc)
  • Support getting more annotation default values using reflection (PR #4103 by @freya022)

Changed

  • Minor refactoring: Simplifies how to group deleted tokens by extracting a method into an independent class (PR #4134 by @jlerbsc)
  • Replace deprecated command with environment file (PR #4122 by @70825)
  • Fixes missing named constructor in Modifier.java (PR #4092 by @Auties00)

Fixed

  • Fix: issue 4133 Top-level class containerType() throws an exception instead of Optional.empty() (PR #4135 by @jlerbsc)
  • Fix: apply multiline strings (PR #4130 by @70825)
  • Fix: issue 3976 Issue resolving implicit generic types (PR #4128 by @jlerbsc)
  • Add unit test for PR 4091 Fixed missing permits in pretty printer (PR #4126 by @jlerbsc)
  • Fix: issue 4124 UnsupportedOperationException: 'T' is thrown in MethodCallExpr resolve (PR #4125 by @jlerbsc)
  • Fix: issue 4051 Switched upperBounds and lowerBounds on ResolvedTypeP… (PR #4123 by @jlerbsc)
  • Fix failing test on JDK 17 (PR #4121 by @mahesh-hegde)
  • Fix: issue 3673 isAssignableBy method StackOverflowError (PR #4118 by @jlerbsc)
  • Orphan comment added when using lexical preservation is not printed (PR #4114 by @jlerbsc)
  • Fixed missing permits in pretty printer (PR #4091 by @Auties00)

Developer Changes

Uncategorised

  • Fix: issue 4104 LPP doesn't handle new switch entries well (PR #4106 by @jlerbsc)

:heart: Contributors

Thank You to all contributors who worked on this release!

javaparser-parent-3.25.4

10 months ago

Changed

Fixed

  • Fix: issue 4077 After building JavaParser (with tests) on MacOS multi… (PR #4086 by @jlerbsc)
  • fix line separators of selected test files (PR #4083 by @abego)
  • Fix: issue 3978 typesolver can't parse in parallel (PR #4073 by @jlerbsc)
  • Fix #4056 isDeclaredInInterface() returns true for fields declared inside enumerations contained in an interface (PR #4057 by @Elewyth)
  • Fix: issue 4037 ArrayIndexOutOfBoundsException throws when method param is variadic (PR #4046 by @jlerbsc)
  • Fix: issue 4016 Failed to parse variable with name 'sealed' or 'permits' (PR #4039 by @jlerbsc)

Developer Changes

:heart: Contributors

Thank You to all contributors who worked on this release!

v_snapshot_56be443

1 year ago

Changed

  • Minor simplification of the Difference class (PR #4008 by @jlerbsc)
  • Perf: Remove unnecessary methods and quickly return to the Range.cont… (PR #3996 by @jlerbsc)

Fixed

  • Fix: issue 1843 Problems with hasAnnotation() and hasDirectlyAnnotati… (PR #4015 by @jlerbsc)
  • Fix: Issue 3995 resolving a method call with a variadic argument of p… (PR #3998 by @jlerbsc)
  • Fix: issue 3983 why FieldDeclaration in an interface calling isStatic… (PR #3986 by @jlerbsc)

Developer Changes

Uncategorised

  • add test for showing interface field shall be static & final (PR #3984 by @XenoAmess)

:heart: Contributors

Thank You to all contributors who worked on this release!

javaparser-parent-3.25.2

1 year ago

Changed

Fixed

  • Fix: issue 3947 MANIFEST.MF points to non-existent URL (PR #3966 by @jlerbsc)
  • Fix: issue 3951 ConfilictingGenericTypesException is thrown when an Object type is expected as a parameter and an interface is provided as the actual parameter (PR #3963 by @jlerbsc)
  • Fix: issue 3949 LexicalPreservingPrinter Ignores Changes to LambdaExp… (PR #3959 by @jlerbsc)
  • Fix: Unit test since Return-Type-Substituable is fully implemented on reference type (PR #3943 by @jlerbsc)
  • Fix: issue on FunctionalInterfaceLogic but waiting for Return-Type-Su… (PR #3941 by @jlerbsc)
  • Suggested fix: hardcoded specific LambdaExpr case in LexicalDifferenc… (PR #3938 by @blacelle)
  • Fix TextBlockLiteralExpr in LexicalDifferenceCalculator (PR #3937 by @blacelle)
  • Fix: issue 3919 An array of primitive type cannot be assigned to an array of object (PR #3933 by @jlerbsc)

Developer Changes

:heart: Contributors

Thank You to all contributors who worked on this release!

javaparser-parent-3.25.1

1 year ago

API or Behaviour Change

  • Fix: Issue 3045 Unexpected exception when solving type inside an Anonymous class (PR #3896 by @jlerbsc)

Added

  • Improved search for functional interfaces (PR #3894 by @jlerbsc)

Changed

Fixed

  • Fix: issue 3924 Removing ImportDeclaration with Annotated package thr… (PR #3926 by @jlerbsc)
  • Fix: issue 3918 JavaParserTypeDeclarationAdapter resolving wrong Type via Ancestor (PR #3921 by @jlerbsc)
  • Fix: issue 3919 ResolvedType::isAssignableBy(ResolvedType) is wrong f… (PR #3920 by @jlerbsc)
  • Fix: issue 3911 java.lang.UnsupportedOperationException: T[] while resolving generic method with type parameter with arrays like List<T[]> (PR #3917 by @jlerbsc)
  • Fix: \s escape gives lexical error but should be valid since Java 15 (PR #3903 by @jlerbsc)
  • Fix: Issue 3045 Unexpected exception when solving type inside an Anonymous class (PR #3896 by @jlerbsc)
  • Fix issue 1883 Finding lambda return type (PR #3890 by @jlerbsc)
  • Fix: issue 1815 ArrayIndexOutOfBoundsException when resolving lambda parameter. This fix is offered by Blackgen (PR #3888 by @jlerbsc)

Developer Changes

:heart: Contributors

Thank You to all contributors who worked on this release!