All Versions
184
Latest Version
Avg Release Cycle
19 days
Latest Release
-

Changelog History
Page 1

  • v3.18.1

    ๐Ÿ“œ issues resolved

    โž• Added

    ๐Ÿ”„ Changed

    ๐Ÿ—„ Deprecated

    โœ‚ Removed

    ๐Ÿ›  Fixed

    ๐Ÿ”’ Security

  • v3.18.0

    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)
  • v3.17.1

    ๐Ÿ“œ issues resolved

    โž• Added

    ๐Ÿ”„ Changed

    ๐Ÿ—„ Deprecated

    โœ‚ Removed

    ๐Ÿ›  Fixed

    ๐Ÿ”’ Security

  • v3.17.0

    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

  • v3.16.3

    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 and ResolvedPrimitveType (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 different Optional<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

    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
  • v3.16.1

    May 25, 2020

    ๐Ÿ“œ issues resolved

  • v3.16.0

    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 (previously JavaToken.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 to JavaParserFacade#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 returning Optional.empty() causes problems would have also previously triggered a NullPointerException. 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

    ๐Ÿ“œ 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 (previously JavaToken.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 to JavaParserFacade#get. This is specifically in response to #2668 - JavaParser is not otherwise threadsafe.
      (PR #2694, by @MysterAitch)
  • v3.15.22

    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 update parser-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)