-
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 to OptionalDouble.isPresent #286
Comments
Now that I've found out how to get a complete list, I've found the following in our build as well:
Should I try to put together a complete example that demonstrates all of these? |
I managed to put together an extended example of all but the last. (Still not sure where Anyway, here's the extended example for the rest:
With passing test:
|
Thanks for the elaborate issue description, this is really helpful! Your analysis is correct, prefab values should be added for these types. If you're interested in making a PR, the places where you should look are JavaApiPrefabValues and JavaApiClassesTest. If not, I'll probably be able to do this some time next week. |
I'm adding prefab values for In your report, that leaves
|
Indeed: note this line in the test:
It seems that if these 2 classes are fields in the tested class, involved in equals or not, then the warning is emitted. PCS is something that might be included on mutable data-classes to notify observers of state changes.
D'oh! sorry, I must have been testing theories about the warning on |
Ah, I see! Thanks. |
Hi, many thanks for this! I've found the offending test regarding
I tried Prefab values (in the test for the class that included Either way I'm happy for it not to block this issue being closed. (Update: in fact I've embarked on a large refactoring to try and make that class implement just |
I've just released a new version (3.1.13) with the new prefab values. I remember I've looked into supporting custom classes that implement AbstractList at some point, and that I ran into some issues and eventually gave up... Still, I wish you much luck with your refactoring 💪 |
Similarly to #214 and friends, this time for
java.util.OptionalDouble
(running EV 3.1.12 and Java 11):Example class to test:
(If you search/replace
OptionalDouble
withString
then the warning is not emitted.)I guess something similar to the existing Prefab value for
Optional
might do the trick?OptionalInt
andOptionalLong
might also want similar treatment.The text was updated successfully, but these errors were encountered: