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

withPrefabValues can generate illegal reflective access warnings #215

Closed
jqno opened this issue Oct 23, 2018 · 1 comment
Closed

withPrefabValues can generate illegal reflective access warnings #215

jqno opened this issue Oct 23, 2018 · 1 comment
Labels

Comments

@jqno
Copy link
Owner

jqno commented Oct 23, 2018

As discovered in #214, withPrefabValues can generate illegal reflective access warnings if used on a type that is defined in a different module that isn't open for reflection. This happens when EqualsVerifier tries to clone the red value into the redCopy value.

This should be fixed. If that's not possible, there should be a workaround (for instance, by adding an overloaded withPrefabValues method with a redCopy parameter.

@jqno
Copy link
Owner Author

jqno commented Dec 24, 2018

It's fixed in version 3.1. You'll still get the illegal reflective access warnings if you run without --illegal-access=deny, which is unfortunate, but there will be no InaccessibleObjectException when you run with it.

@jqno jqno closed this as completed Dec 24, 2018
akhalikov pushed a commit to akhalikov/equalsverifier that referenced this issue Nov 6, 2019
akhalikov pushed a commit to akhalikov/equalsverifier that referenced this issue Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant