Skip to content

Properly fall back if can't setAccessible#8306

Merged
headius merged 1 commit intojruby:jruby-9.3from
headius:seekablebc_fallback
Jun 27, 2024
Merged

Properly fall back if can't setAccessible#8306
headius merged 1 commit intojruby:jruby-9.3from
headius:seekablebc_fallback

Conversation

@headius
Copy link
Member

@headius headius commented Jun 27, 2024

Changes in e8dbe9c broke this fallback by silencing errors from the old setAccessible (as part of becoming more module-friendly). This patch checks if the setAccessible was successful and returns null for any fields that could not be made accessible. This in turn allows the USABLE fallback to properly reflect actual usability.

Changes in e8dbe9c broke this fallback by silencing errors from
the old setAccessible (as part of becoming more module-friendly).
This patch checks if the setAccessible was successful and returns
null for any fields that could not be made accessible. This in
turn allows the USABLE fallback to properly reflect actual
usability.
@headius headius added this to the JRuby 9.3.16.0 milestone Jun 27, 2024
@headius
Copy link
Member Author

headius commented Jun 27, 2024

This PR was made against 9.3 (since it broke at 9.3.0.0) but may not see a release there for some time. Setting milestone to 9.4.8.0 because that's where most users will end up seeing it.

@headius headius modified the milestones: JRuby 9.3.16.0, JRuby 9.4.8.0 Jun 27, 2024
@headius headius merged commit 9a2a1df into jruby:jruby-9.3 Jun 27, 2024
@headius headius deleted the seekablebc_fallback branch June 27, 2024 18:05
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.

1 participant