-
Notifications
You must be signed in to change notification settings - Fork 75
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
Classes with URL in them will give warning illegal reflective #340
Comments
I've added prefab values for |
Sorry for the late response but I think you might have to do more then just add a prefab value for java.net.url if you look at the additional information part when I added the withPrefabValues for the url the warning changed. |
Can you confirm that please? I've got the EqualsVerifier build running with |
Ah, that at the same time explains and doesn't explain things... |
I dont really know how to get the warning to show up for the maven verify so Ill close the ticket and if in the future I run into the issue again but it also shows up on maven then Ill reopen the issue with the steps required. |
I've just released version 3.4.3, which contains the prefab value. |
What steps will reproduce the problem?
Create class with URL
What is the code that triggers this problem?
Provide an example of a complete class (equals method, hashCode method, relevant fields) and a call to EqualsVerifier.
Remember, you have the problem right in front of you. I have to try and reproduce it in my spare time. Please help me, so that I can help you!
What error message or stack trace does EqualsVerifier give?
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by nl.jqno.equalsverifier.internal.reflection.FieldAccessor (file:/userspace/nl/jqno/equalsverifier/equalsverifier/3.4.2/equalsverifier-3.4.2.jar) to field java.net.UrlDeserializedState.protocol
WARNING: Please consider reporting this to the maintainers of nl.jqno.equalsverifier.internal.reflection.FieldAccessor
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
What did you expect?
no warning
Which version of EqualsVerifier are you using?
3.4.2
Please provide any additional information below.
This will change the warning to
WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by nl.jqno.equalsverifier.internal.reflection.FieldAccessor (file:/userspace/nl/jqno/equalsverifier/equalsverifier/3.4.2/equalsverifier-3.4.2.jar) to field java.net.URL.protocol WARNING: Please consider reporting this to the maintainers of nl.jqno.equalsverifier.internal.reflection.FieldAccessor 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
The text was updated successfully, but these errors were encountered: