All Versions
203
Latest Version
Avg Release Cycle
19 days
Latest Release
-
Changelog History
Page 3
Changelog History
Page 3
-
v3.18.0 Changes
December 01, 2020๐ issues resolved
โ Added
- โ Add a convenient method (hasRange) to the interface NodeWithRange
(PR #2929, by @jlerbsc) - โ Add test case to issue 1017 LambdaExpr left side too permissive (PR #2946, by @jlerbsc)
- โ Added Pattern Matching for instanceof (Java 14 preview, Java 15 second preview, Java 16 targeted release) (PR #2654, by @MysterAitch)
- โ Added java 15 (latest released) and java 16 (bleeding edge) language level options, incl. some validators / post processors / configuration options (PR #2959, by @MysterAitch) ### ๐ Changed
- 0๏ธโฃ Minor change in PrettyPrinterConfiguration : adding default char in enum IndentType (PR #2948, by @jlerbsc)
- ๐จ Minor refactoring rename interface Printable to Stringable. Something that has a printable form. I.e., it can be converted to a user-facing String (PR #2949, by @jlerbsc)
- โ Adding interface Printable for printer (PR #2950, by @jlerbsc)
- ๐จ Minor refactoring in ResolvedReferenceType and add corresponding tests (PR #2955, by @jlerbsc)
- ๐ Tweak the property generator to add imports when generating and improve the typecastinggenerator's error message (PR #2957, by @MysterAitch)
- โฌ๏ธ Bump mockito-core from 3.6.0 to 3.6.28 (PR #2942, by dependabot ### โ Removed
- โ Removed .travis.yml -- per #2919 (PR #2958, by @MysterAitch) ### ๐ Fixed
- Issue 2909 Improving search for the most relevant declaration of the specified class
(PR #2927, by @jlerbsc) - Issue 2926 NoSuchElementException in PhantomNodeLogic after adding node
(PR #2930, by @jlerbsc) - Issue 2909 try different bottom / up and try with type solver strategies (PR #2931, by @jlerbsc)
- Issue 2936 Triggering observer notifications for the NodeList iterator (PR #2938, by @MysterAitch)
- Issue 2065 Problem resolving type of lambda with Math method invocation inside (PR #2945, by @jlerbsc)
- Issue 2740 Issue related to a method call in an anonymous class on a field with a private visibility (PR #2947, by @jlerbsc)
- Issue 2951 Cannot solve function with List argument defined in jar (PR #2952, by @qzchenwl)
- Issue 2781 Resolve Stack overflow occurs when the name of the interface implemented by the class is the same as the name of the internal class (PR #2956, by @jlerbsc)
- 0๏ธโฃ Issue 2953 UnsolvedSymbolException throw when resolving method in enum class implement in interface by default.
(PR #2954, by @qzchenwl) - ๐ Fixed MethodCallExprContext generic parameter issue. (NullType must not fail matchTypeParameters) (PR #2939, by @zcbbpo)
- Issue 2943 UnsolvedSymbolException thrown on
Stream.<func>(<some lambda>)
(PR #2961, by @qzchenwl) - ๐ Issue 1945 JavaParser choking on multiple generic method calls on the same line (PR #2966, by @jlerbsc)
- โ Add a convenient method (hasRange) to the interface NodeWithRange
-
v3.17.0 Changes
November 15, 2020๐ issues resolved
๐ Fixed
- BEHAVIOUR CHANGE: Fix ArrayType brackets precedence (PR #2758, by @iTakeshi)
- BEHAVIOUR CHANGE: Issue 2535 Comments within method missing indentation
(PR #2918, by @jlerbsc) - ๐ฏ Issue 2290 Removing the second instance of a cloned statement within a block fails (PR #2892, by @jlerbsc)
- Issue 2393 Apply difference in node text after if condition replacement (PR #2895, by @jlerbsc)
- Issue 2406 Symbol solver fails to solve generic array type (PR #2896, by @jlerbsc)
- Issue 2489 SymbolSolver choosing wrong method after resolving (PR #2898, by @jlerbsc)
- Issue 2062 Type inference issue for method arguments (PR #2900, by @jlerbsc)
- ๐ Fix LOOKAHEAD for ReferenceType (PR #2904, by @mernst)
- ๐จ Issue 2578 Orphaned Comments exist but not printed on unrelated change to AST (PR #2916, by @jlerbsc)
- Issue 2909 Unexpected result when solving an outer class reference (PR #2914, by @jlerbsc)
- Issue 2909 Improving how to resolve inner classes
(PR #2920, by @jlerbsc) (PR #2921, by @jlerbsc) - ๐จ Ensure spaces between annotations and types for lexical-preserving printing (PR #2795, by @jwaataja)
๐ Changed
- โก๏ธ Updated dependencies, and dependabot config (PR #2893, by @mysteraitch) (PR #2902, by Dependabot)
- โก๏ธ Issue 2613 Auto update the version in the readme (PR #2903, by @mysteraitch)
- ๐ Fix jacoco and enable codecov.io action (PR #2906, by @mysteraitch)
- ๐จ Minor refactoring of binary numeric promotion (PR #2915, by @jlerbsc)
- โ Testcases for logical and/or (PR #2907, by @mysteraitch)
- Format and document the grammar (PR #2901, by @mysteraitch) (PR #2913, by @mernst)
-
v3.16.3 Changes
November 07, 2020๐ issues resolved
- โ ADDED: Created MANY test cases for older issues resolved but not directly linked/closed. (PRs #2838, #2842, #2843, #2852, #2853, #2854, #2855, #2867, #2868, #2862, #2873, by @jlerbsc )
- โ ADDED: Added helper method to
ResolvedPrimitiveType.java
which checks if it is a boolean (PR #2856, by @jlerbsc) - โ ADDED: Added helper method to
ResolvedPrimitiveType.java
which returns all numeric types (PR #2858, by @jlerbsc) - โ ADDED/CHANGED: Minor refactoring - formatting code and adding convenient methods to
TypeHelper
andResolvedPrimitveType
(PR #2860, by @jlerbsc) - โ ADDED: Allow the symbol resolver for a
SymbolSolverCollectionStrategy
to be set via the given parser configuration (PR #2864, by @jlerbsc) - ๐ FIXED:
MethodResolutionLogic.findMostApplicable
not return correct symbol reference when resolving overloaded method (PR #2866, by @jlerbsc) - ๐ FIXED: Updated
AbstractSymbolResolutionTest.java
with better@BeforeEach
/@AfterEach
(PR #2871, by @jlerbsc) - ๐ FIXED:
TypeResolver
fails on method with args to static imported fields (PR #2872, by @jlerbsc) - ๐ FIXED: Fix issue Resolution error for non-generic constructor if generic constructor declared (PR #2874, by @jlerbsc)
- ๐ FIXED: Fix issue Fails to calculate the type of a generic return type constructed from a Primitive type (PR #2875, by @jlerbsc)
- ๐ FIXED: Fix issue Can't get qualified signature of a resolved method inside a Constant Enum declaration (PR #2876, by @jlerbsc)
- ๐ FIXED: Fix issue Constructor resolution error for overloaded variadic constructor (PR #2877, by @jlerbsc)
- ๐ FIXED: Fix issue Unable to find the constructor declaration when the argument list contains multiple
Optional.empty()
for differentOptional<T>
(PR #2880, by @jlerbsc) - ๐ FIXED: Fix issue Solving symbol as value in the case where the scope is a constraint (PR #2883, by @jlerbsc)
-
v3.16.2 Changes
October 16, 2020๐ issues resolved
- ๐ FIXED: Enhanced the handling of line separator, introducing an enum
LineSeparator
that can be used. (PR #2685, by @MysterAitch) - ๐ FIXED: The generated metamodel classes now have the
@Generated
annotation (PR #2706, by @MysterAitch) - ๐ various other bugfixes and enhancements
- ๐ FIXED: Enhanced the handling of line separator, introducing an enum
-
v3.16.1 Changes
May 25, 2020๐ issues resolved
-
v3.16.0 Changes
May 24, 2020๐ issues resolved
๐ There are two breaking changes within this release. โฌ๏ธ If you would like assistance with upgrading, get in touch.
- ๐ FIXED: Edits to the value of a string value are now correctly handled for use with Lexical Preservation (PR #2646, by @lemoncurry)
- ๐ FIXED: Edits to the value of other literal values also now handled (PR #2679, by @MysterAitch)
- ๐ฅ BREAKING CHANGE: Tokens relating to literal values now have the category of
JavaToken.Category.LITERAL
(previouslyJavaToken.Category.KEYWORD
) (PR #2679, by @MysterAitch) - ๐ FIXED: Add symbol solver support for variadic parameters given zero or more than one argument, and when an array is given (PR #2675, by @hfreeb)
- ๐ CHANGED: Added the keyword
synchronized
toJavaParserFacade#get
. This is specifically in response to #2668 - JavaParser is not otherwise threadsafe.
(PR #2694, by @MysterAitch) - BREAKING CHANGE: The following methods now return
Optional<>
(as do all classes which implement/extend them):ResolvedClassDeclaration#getSuperClass()
,ResolvedReferenceType#getTypeDeclaration()
.
Note that Converting to use optional should be as simple as adding.get()
, given that any cases where returningOptional.empty()
causes problems would have also previously triggered aNullPointerException
. You might also use.orElseThrow()
.
(PR #2693, by @MysterAitch) - ๐ CHANGED: Added some temporary logic to allow tests to use slightly different expected results based on the version of java used (e.g.
java.lang.Object.registerNatives()
removed in JDK14)
(PR #2637, by @EFregnan) - ๐ FIXED: Fix resolving overloaded methods of external types
(PR #2687, by @maartenc) - ๐ FIXED: Fix resolving method references on expressions other than ReferenceType::methodname
(PR #2674, by @maartenc)
-
v3.15.23 Changes
๐ issues resolved
- ๐ FIXED: Edits to the value of a string value are now correctly handled for use with Lexical Preservation (PR #2646, by @lemoncurry)
- ๐ FIXED: Edits to the value of other literal values also now handled (PR #2679, by @MysterAitch)
- ๐ฅ BREAKING CHANGE: Tokens relating to literal values now have the category of
JavaToken.Category.LITERAL
(previouslyJavaToken.Category.KEYWORD
) (PR #2679, by @MysterAitch) - ๐ FIXED: Add symbol solver support for variadic parameters given zero or more than one argument, and when an array is given (PR #2675, by @hfreeb)
- ๐ CHANGED: Added the keyword
synchronized
toJavaParserFacade#get
. This is specifically in response to #2668 - JavaParser is not otherwise threadsafe.
(PR #2694, by @MysterAitch)
-
v3.15.22 Changes
May 11, 2020๐ issues resolved
- โฌ๏ธ REVERT: Rollback of upgrade to
ph-javacc-maven-plugin
from v4.1.3 to v4.1.2 (this undoes the transitive dependency updateparser-generator-cc
from v1.1.2 to v1.1.1, which appears to have isuse with handling tokens longer than the buffer length)
(#2646) - โ ADDED: Support resolving an enum's
valueOf
method (#2652) - ๐ FIXED: Fixed build warning -- bnd-maven-plugin flagging missing id (#2605)
- ๐ FIXED: Fixed cases where nodes added after a trailing comment would incorrectly be added to the same line (thus be part of the comment) (#2646)
- ๐ FIXED: Fixed resolving overloaded static method references (e.g.
String::valueOf
in a stream map/filter) (#2662)
- โฌ๏ธ REVERT: Rollback of upgrade to
-
v3.15.21 Changes
April 23, 2020๐ issues resolved
- ๐ DEPRECATED: Deprecated and documented
JarTypeSolver#getJarTypeSolver(String)
, with a view to later removal. (#2598) (#2622) - ๐ FIXED: Fix issue #2552 : UnsupportedOperationException caused by resolving inner annotation (#2553)
- ๐ FIXED: Parents of
NodeList
s now correctly retain their parent when a child is replaced (#2594) - ๐ FIXED: Fix JavaParserClassDeclaration canBeAssignedTo() to not cause a recursion when a node is its own parent (e.g.
java.lang.Object
) (#2608) - ๐ FIXED: Fix replacing an expression preceded by a comment (
LexicalPreservation
would previously throw anUnsupportedOperation
) (#2611) - ๐ FIXED: The collection strategies now correctly take into account the parser configuration that is passed in via the constructor. (#2619)
- ๐ DEPRECATED: Deprecated and documented