Skip to content

STREAM-822: Add support for JDK 21#159

Merged
priyanshu-ctds merged 15 commits into1.xfrom
stream822
Apr 24, 2026
Merged

STREAM-822: Add support for JDK 21#159
priyanshu-ctds merged 15 commits into1.xfrom
stream822

Conversation

@priyanshu-ctds
Copy link
Copy Markdown
Collaborator

@priyanshu-ctds priyanshu-ctds commented Apr 6, 2026

https://datastax.jira.com/browse/STREAM-822

JDK 16 introduced strong encapsulation of JDK internals (JEP 403), which prevents access to com.sun.tools.javac.* APIs used by Error Prone.
This results in IllegalAccessError during compilation.
To address this, we add --add-exports and --add-opens JVM flags to explicitly allow access to these internal APIs.

Reference:
JEP 403 (Strong Encapsulation): https://openjdk.org/jeps/403
Error Prone compatibility notes: https://errorprone.info/docs/installation

@priyanshu-ctds priyanshu-ctds self-assigned this Apr 6, 2026
Comment thread pom.xml Outdated
Comment thread pom.xml Outdated
Comment thread pom.xml
Comment thread pom.xml Outdated
Comment thread pom.xml Outdated
@priyanshu-ctds priyanshu-ctds merged commit 14319d7 into 1.x Apr 24, 2026
17 of 18 checks passed
@priyanshu-ctds priyanshu-ctds deleted the stream822 branch April 29, 2026 10:39
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.

4 participants