JavaParser v3.22.0 Release Notes

  • 📜 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

    • 📜 Implemented isAssignableBy for VoidType - now return false instead of throwing UnsupportedOperationException (PR #3197 by @4everTheOne)
    • 📦 Simplify how to find the package name from AstResolutionUtils (PR #3193 by @jlerbsc)
    • 📜 Type resolution improvment (PR #3189 by @jlerbsc)
    • 📜 Memory optimization for JarTypeSolver (Up to 42% less memory) (PR #3188 by @4everTheOne)
    • 🛠 Fixes #3048 (JavaParserSymbolDeclaration#localVar returning old declaration) and adds tests for JavaParserSymbolDeclaration (PR #3049 by @4everTheOne)

    🛠 Fixed

    • 🛠 Fix issue #3244 OrphanComment in BlockStmt not appearing (PR #3245 by @jlerbsc)
    • 🛠 fix Log.error() throwing NullPointerException (PR #3243 by @CD4017BE)
    • 🛠 fixed ellipsis and doublecolon to be categorised as separators not operators (fixes #2897) (PR #2924 by @MysterAitch)

    Developer Changes

    • 📜 Include and use a Maven wrapper (PR #3254 by @MysterAitch)
    • ⚡️ chore(deps): update dependency org.javassist:javassist to v3.28.0-ga (PR #3249 by @renovate[bot])
    • ⚡️ chore(deps): update dependency org.jacoco:jacoco-maven-plugin to v0.8.7 (PR #3246 by @renovate[bot])
    • ⚡️ chore(deps): update actions/cache action to v2.1.5 (PR #3226 by @renovate[bot])
    • ⚡️ chore(deps): update dependency org.mockito:mockito-core to v3.9.0 (PR #3224 by @renovate[bot])
    • ⚡️ chore(deps): update actions/setup-java action to v2 (PR #3220 by @renovate[bot])
    • ⚡️ Update javaparser copyright headers (PR #3212 by @jlerbsc)
    • ⚡️ Update readme template so that #3096 becomes permanent (PR #3210 by @MysterAitch)
    • 👌 Improve tests on getAllAncestors method (PR #3209 by @jlerbsc)
    • 🛠 Fix surefire configuration to allow jacoco to run correctly on JSS tests (PR #3208 by @MysterAitch)

    :heart: Contributors

    🚀 Thank You to all contributors who worked on this release!