Skip to content
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

Implement UUID factory to prevent illegal reflective access #14

Merged
merged 3 commits into from
Mar 18, 2020

Conversation

tschmidt01
Copy link

Generating a UUID leads to an illegal reflective access:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.bbottema.loremipsumobjects.typefactories.ConstructorBasedFactory (file:/Users/sm/.m2/repository/com/github/bbottema/lorem-ipsum-objects/4.0.0/lorem-ipsum-objects-4.0.0.jar) to constructor java.util.UUID(byte[])
WARNING: Please consider reporting this to the maintainers of org.bbottema.loremipsumobjects.typefactories.ConstructorBasedFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

Fix: Implement specific factory which calls UUID.randomUUID()

@bbottema bbottema merged commit 486d8b9 into bbottema:master Mar 18, 2020
@bbottema
Copy link
Owner

Released in 4.0.1. Thanks!

@tschmidt01
Copy link
Author

I'll do the same for LocalDate and LocalDateTime tomorrow.

@bbottema bbottema added this to the 4.0.1 milestone Mar 25, 2020
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