Skip to content

Upgrade javaparser-core to 3.28.0 - #3948

Merged
a-TODO-rov merged 2 commits into
redis:mainfrom
seungheyon:javaparser-3.28-3073
Oct 14, 2026
Merged

a-TODO-rov merged 2 commits into
redis:mainfrom
seungheyon:javaparser-3.28-3073

Conversation

@seungheyon

@seungheyon seungheyon commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Closes #3073

javaparser-core is still on 3.6.3 (April 2018). Since 3.13.0 the static
JavaParser.parse(...) methods live in StaticJavaParser, so bumping the
version alone fails to compile in JavadocConsistencyUnitTests, which is
the only remaining user of the library now that the generators are gone (#3866).

This bumps the version and switches the two call sites to
StaticJavaParser.parse(File). No other API changes were needed.

Validation:

  • mvn test -Dtest=JavadocConsistencyUnitTests passes on 3.6.3 before and on 3.28.0 after.
  • To make sure the test still reads the sources with the new parser, I temporarily
    removed one @deprecated tag in RedisStringCommands and the test failed as expected.

This should also make #3628 unnecessary.


Note

Low Risk
Test-only dependency bump with a small API rename; no production or client-facing behavior changes.

Overview
Upgrades the test-scoped javaparser-core dependency from 3.6.3 to 3.28.0 in pom.xml.

Because JavaParser moved static parse(...) entry points to StaticJavaParser (since 3.13.0), JavadocConsistencyUnitTests now imports StaticJavaParser and uses StaticJavaParser.parse(source) in the two places that walk command-interface sources for Javadoc/deprecation checks. Runtime/library code is unchanged; this only affects the consistency test that parses Java sources.

Reviewed by Cursor Bugbot for commit d4fd693. Bugbot is set up for automated code reviews on this repo. Configure here.

Since 3.13.0 the static JavaParser.parse(...) methods live in
StaticJavaParser, so bumping the version alone fails to compile.
JavadocConsistencyUnitTests is the only remaining user of the library
after the generators were removed in redis#3866. Switch its two call sites
to StaticJavaParser.parse(File).
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T07:03:02.069805Z d4fd693 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9f3f9521de

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread pom.xml
<groupId>com.github.javaparser</groupId>
<artifactId>javaparser-core</artifactId>
<version>3.6.3</version>
<version>3.28.0</version>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use a Java 8-compatible JavaParser release

Under the repository's normal JDK 8 build (the reusable test workflow leaves java_version at its default 8 in .github/workflows/run-tests.yml:22-26), javaparser-core:3.28.0 cannot be loaded because its published classes require a post-Java-8 class-file level. Test compilation reaches the new StaticJavaParser import and aborts with an unsupported class-version error, so every default CI matrix entry fails before tests run; use the newest JavaParser release that still targets Java 8 unless the project baseline and workflows are raised together.

AGENTS.md reference: AGENTS.md:L61-L64

Useful? React with 👍 / 👎.

@a-TODO-rov a-TODO-rov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@a-TODO-rov
a-TODO-rov merged commit 1334184 into redis:main Oct 14, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate to newer versions of the JavaParser library

2 participants