Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency com.github.javaparser:javaparser-core to v3.22.1 #282

Merged
merged 2 commits into from
Aug 11, 2021

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 30, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.github.javaparser:javaparser-core 3.15.14 -> 3.22.1 age adoption passing confidence

Release Notes

javaparser/javaparser

v3.22.1

issues resolved

Added
  • Recover wrong statements no only to ';', but to '}' (not including) as well (PR #​3247 by @​32kda)
Fixed
Developer Changes
❤️ Contributors

Thank You to all contributors who worked on this release!

v3.22.0

issues resolved

API or Behaviour Change
  • Implemented isAssignableBy for VoidType - now return false instead of throwing UnsupportedOperationException (PR #​3197 by @​4everTheOne)
  • fixed ellipsis and doublecolon to be categorised as separators not operators (fixes #​2897) (PR #​2924 by @​MysterAitch)
Added
  • Update parser configuration and validators to include the release of java 16, and java 17 being in development (PR #​3222 by @​MysterAitch)
  • Adding convenient methods to find out if a method is a variable/fixed arity method (PR #​3196 by @​jlerbsc)
  • Fix issue #​3173: Add isAnnotation() and asAnnotation() methods for ResolvedTypeDeclaration (PR #​3187 by @​deadlocklogic)
  • Record support (compilation / parsing only, solving to follow separately) (PR #​3022 by @​MysterAitch)
Changed
Fixed
Developer Changes
❤️ Contributors

Thank You to all contributors who worked on this release!

v3.20.0

issues resolved

Added
Changed
Fixed

v3.19.0

issues resolved

Added
Changed
  • Minor refactoring regarding indentation management
    (PR #​2969, by @​jlerbsc)
  • Minor refactoring regarding indentation management (part2)
    (PR #​2970, by @​jlerbsc)
  • Minor refactoring moving Indentation class to configuration package - preparation for other refactoring on Printer
    (PR #​2972, by @​jlerbsc)
  • Bump guava from 30.0-jre to 30.1-jre
    (PR #​2977, by @​dependabot)
  • Refactoring: relocation of boxing/unboxing methods
    (PR #​2983, by @​jlerbsc)
  • Improve boxing/unboxing unit tests and remove useless code in isUnbox...
    (PR #​2984, by @​jlerbsc)
  • Bump jbehave-core from 4.7 to 4.8.1
    (PR #​2989, by @​dependabot)
  • Add JVM memory settings for surefire (seems that forked mode is the default running mode)
    (PR #​2999, by @​jlerbsc)
  • Move unit test Issue2592Test because it's not related to symbol solver
    (PR #​3000, by @​jlerbsc)
  • Manage memory on test suite (clear internal cache to release memory)
    (PR #​3001, by @​jlerbsc)
  • Remove the PhantomNodeLogic that generates memory issues when LexicalPreservingPrinter is used. Phantom node is now an attribut of each node. This is an optimization of the JP memory usage.
    (PR #​3002, by @​jlerbsc)
  • Make the visit order of ModifierVisitor more consistent.
    (PR #​3011, by @​mernst)
  • Link to the specification, not to a random blog.
    (PR #​3013, by @​mernst)
  • Minor refactoring change call to getScope().isPresent() to hasScope()
    (PR #​3026, by @​jlerbsc)
  • Issue #​3050 - Minor improvement to thread safety
    (PR #​3052, by @​jlerbsc)
Deprecated
  • PhantomNodeLogic is now deprecated, with the logic now being handled by the node itself.
    (PR #​3002, by @​jlerbsc)
Fixed

v3.18.0

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
  • 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
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<byte[]> 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)
  • 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.0

issues resolved

Fixed
Changed

v3.16.3

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

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

issues resolved

v3.16.0

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.22

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)

v3.15.21

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 NodeLists 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 an UnsupportedOperation)
    (#​2611)
  • FIXED: The collection strategies now correctly take into account the parser configuration that is passed in via the constructor.
    (#​2619)

v3.15.18

issues resolved

  • CHANGED: Dependencies should now all be up-to-date.
    (#​2572 / #​2581)
    • Note that the JavaCC update introduced a breaking change that now requires a StreamProvider to be passed a charset if using an InputStream source.
  • FIXED (possible CHANGED/BREAKING):
    Improvements have been made to method PositionUtils#nodeContains() for clarity and precision in behaviour.
    (#​2502)
    • It is believed that there are no changes to behaviour, but if you do see anything please do reach out.
    • See some additional commentary/thoughts in #​2502
  • FIXED: Resolving super methodcalls in anonymous inner classes (fixes #​1962)
    (#​2585)
  • ADDED: NodeList#getFirst(): Optional<Node>
    (#​2502)
  • ADDED: NodeList#getLast(): Optional<Node>
    (#​2502)

v3.15.17

issues resolved

  • CHANGED: Merged symbol solver modules, for java 9 module compatibility
    (#​2564)
  • CHANGED: Renamed the pretty printer configuration option isSpacesBetweenOperators to isSpaceAroundOperators
    (#​2555)

v3.15.15

issues resolved

  • Often requested, finally implemented by ReallyLiri:
    configurable cache sizes for the symbol solver.

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@puneetbehl puneetbehl merged commit ac65c85 into master Aug 11, 2021
@puneetbehl puneetbehl deleted the renovate/com.github.javaparser-javaparser-core-3.x branch August 11, 2021 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants