Skip to content

Fix GraalVM reflection issue#6930

Merged
mrniko merged 4 commits intoredisson:masterfrom
GaoSSR:fix-graalvm-reflection-issue-6830
Jan 1, 2026
Merged

Fix GraalVM reflection issue#6930
mrniko merged 4 commits intoredisson:masterfrom
GaoSSR:fix-graalvm-reflection-issue-6830

Conversation

@GaoSSR
Copy link
Contributor

@GaoSSR GaoSSR commented Dec 31, 2025

Fixes #6830

Remove reflection from convertNodes() to support GraalVM Native Image,Use MethodHandles instead of reflection to dynamically invoke host() and port() methods。

@mrniko mrniko added this to the 4.1.1 milestone Jan 1, 2026
@mrniko mrniko added the bug label Jan 1, 2026
@mrniko mrniko merged commit 3867077 into redisson:master Jan 1, 2026
4 checks passed
@mrniko
Copy link
Member

mrniko commented Jan 1, 2026

Thanks for contribution

@GaoSSR
Copy link
Contributor Author

GaoSSR commented Jan 1, 2026 via email

@GaoSSR
Copy link
Contributor Author

GaoSSR commented Jan 1, 2026

Thank you! Happy to help.

@mrniko
Copy link
Member

mrniko commented Jan 1, 2026

@GaoSSR

I have refactored RedissonAutoConfigurationV4, since Boot 4.0.0 has all methods now and reflection isn't needed. Except your code changes, since record can't be compiled in JDK 8 it continues using MethodHandles.

@GaoSSR
Copy link
Contributor Author

GaoSSR commented Jan 1, 2026

@mrniko Great! Thanks for the refactoring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

RedissonAutoConfiguration fails to convert nodes in Native Image (GraalVM) application

2 participants