Skip to content

Illegal access reflection TimeZone ZoneRules, ZoneId and ZoneInfo. #1200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gsabboz opened this issue Apr 11, 2022 · 4 comments
Closed

Illegal access reflection TimeZone ZoneRules, ZoneId and ZoneInfo. #1200

gsabboz opened this issue Apr 11, 2022 · 4 comments

Comments

@gsabboz
Copy link
Contributor

gsabboz commented Apr 11, 2022

Javers doesn't work on java 16 with classes TimeZone ZoneRules, ZoneId, and ZoneInfo.
This issue is similar to #1091.

I made a pull request for this #1201

Javers' Version
6.6.3

@bartoszwalacik
Copy link
Member

fixed in 6.6.6

@PandarinDev
Copy link

I assume that was meant to be 6.6.5 since the changelog on the website mentions this as a fix for 6.6.5. However, this issue is still present for the YearMonth class. Should I open a separate issue for this?

@opodrubailo
Copy link

@bartoszwalacik same question.
Got java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.lang.String java.time.ZoneRegion.id accessible for a ZoneId field.
Is there any workaround for this? Because I'm trying Javers on Java 17, where --illegal-access=warn is not supported

@opodrubailo
Copy link

@PandarinDev found a workaround - add VM option --add-opens java.base/java.time=ALL-UNNAMED

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

No branches or pull requests

4 participants