-
Notifications
You must be signed in to change notification settings - Fork 26
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
Deprecated methods #52
Comments
Try not to use anything that doesn't work on JDK 1.5, but otherwise this should be fine. |
The Installation instructions say "We recommend JDK version 11 (at least) to run." Should it be backward compatible to JDK 1.5? In Eclipse IDE, there is a preference to set "compiler compliance level" to 1.5, 11, or 14 and things in between. Is this the setting I should change? |
It is definitely supported on at least JDK 9, and JDK 5 is from memory (certainly not before that, because we use generics, and in fact I think we use the diamond operator |
These deprecated methods appear in "lib/JSON-java/org" which doesn't seem to be a real part of mmj2. Therefore, I will not make any modifications to them. |
As for the java version, I encounter warnings and unwanted behavior of mmj2 with JDK >= 9 and I have to downgrade to JDK 8 (see thread https://groups.google.com/g/metamath/c/WFoQTXy17lU/m/cm4tqs6yDQAJ), so I'm not sure why the installation instructions (https://github.com/digama0/mmj2/blob/master/INSTALL.md) recommend JDK >= 11. |
There are several places where deprecated methods are being used.
For example: "final Double d = new Double(value);"
The suggested correction is: "final Double d = Double.valueOf(value);"
I am willing to make these changes and submit a pull request from my fork.
Is this worthwhile doing? Will it be accepted? Thanks.
Other examples:
The text was updated successfully, but these errors were encountered: