-
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
Illegal reflective access on Java 9/10 #207
Comments
I've reproduced this issue and I'll try to release a new version with prefab values soon, definitely for the In the mean time, do you think there are other RMI related classes besides |
@jqno Thanks for offering to add the new prefab values!
This is going to sound strange, but the app in question doesn't really use RMI--it simply hijacks some RMI types for a custom networking protocol. I haven't used true RMI in almost 15 years. 😄 However, I took a quick look through the Java 8 RMI sources and identified the following value-like types as being candidates for an EV prefab value (beyond
Again, due to my lack of RMI experience, I don't have a good feel as to whether it would make sense to use the above types in an There were some other value-like types (e.g. |
Ah, I assumed you were actually using RMI :). In that case, I'll probably just add I'm currently working on a large release and I'll probably add them in there. I'll let you know when I release it. |
I just released version 3.0, which contains all the prefab values we discussed. |
Thanks, Jan. I confirmed the test referenced above now runs without warning after upgrading to EV 3.0. Cheers! |
Glad to hear that, thanks for letting me know! |
What steps will reproduce the problem?
Apply EV to the
GUID
class referenced below on Java 9/10.What is the code that triggers this problem?
GUID.java
GuidTest.java
Tested with both Oracle jdk-9.0.4 and jdk-10.0.2.
What error message or stack trace does EqualsVerifier give?
Java compiler emits:
What did you expect?
No illegal reflective access warnings.
Which version of EqualsVerifier are you using?
2.5.2
Please provide any additional information below.
I realize the
GUID
type above is somewhat pathological, but it's legacy code and not easily changeable at this time due to compatibility issues. 😞 So, I understand if supporting prefab values for these types is not desirable from EV's perspective, but we'd love to keep our EV tests! 👍The text was updated successfully, but these errors were encountered: