-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Java7 classes should no longer need reflection #3707
Conversation
pjfanning
commented
Dec 25, 2022
•
edited
edited
- Since Jackson 2.14, Java 8 is minimum needed
- with newer Java releases, it is better to minimise the use of Java reflection
- In theory, we could roll this code into parent classes but removing classes might be regarded as a breaking change - in the unlikely scenario, that someone has subclassed this part of the code
I agree with the goals. But would this be problematic for Android users? |
I don't know much about Android. I sort of assumed CI build was set up to check. I thought I saw mention of Animal Sniffer being used to verify compatibility with Android API level 26. |
I'll close this. Looks like this Java7 support class is needed for Android compatibility.
|
It's possible that the java.nio classes are actually ok. Animal Sniffer only picks up on the 2 java.beans classes when I empty the ignores list.
|
Ok, I think there are 2 things we can consider then:
For (2) we should probably file a new issue for 2.16 for follow-up work. |
replaced by #3708 |