Skip to content

Use SunLimitedUnsafeReflectionProvider not SunUnsafeReflectionProvider on 23+ - #475

Open
jglick wants to merge 1 commit into
x-stream:v-1.4.xfrom
jglick:SunLimitedUnsafeReflectionProvider
Open

Use SunLimitedUnsafeReflectionProvider not SunUnsafeReflectionProvider on 23+#475
jglick wants to merge 1 commit into
x-stream:v-1.4.xfrom
jglick:SunLimitedUnsafeReflectionProvider

Conversation

@jglick

@jglick jglick commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Fixes #362. (I think. Minimally tested.)

test = false;
Class type = PureJavaReflectionProvider.class;
if (canUseSunUnsafeReflectionProvider()) {
if (isVersion(23) && canUseSunUnsafeReflectionProvider()) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Did you mean canUseSunLimitedUnsafeReflectionProvider here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No. This is capturing the value of

whereas is not available yet. The original code was perhaps confusingly written. All I am changing here is what the PR title says.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Oh, yes, I see. Thanks for the clarification.

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.

2 participants