Is your feature request related to a problem? Please describe.
Running paper on newer java (e.g. 14 aka 58.0) versions causes:
Unsupported Java detected (58.0). Only up to Java 13 is supported.
Describe the solution you'd like
A jvm arg that allows for disabling that safety check. e.g. -DisableJavaSafetyCheck
Not a paper issue
-Djava.class.version=58.0
I don't think overriding the class version like that should be the recommended way to disabled that check.
I personally just straight up removed that check because its stupid, but if core team would accept a PR to add such an option I would happily step up to do so.
I honestly detest the idea of having such trivial patches lying around, but
kinda support people's right to shoot themselves in the foot if they so
wish...
On Fri, 7 Feb 2020, 12:40 MiniDigger, notifications@github.com wrote:
I don't think overriding the class version like that should be the
recommended way to disabled that check.I personally just straight up removed that check because its stupid, but
if core team would accept a PR to add such an option I would happily step
up to do so.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/PaperMC/Paper/issues/2935?email_source=notifications&email_token=AAJMAZD52TAKRRLEOPNPM33RBVJCPA5CNFSM4KRMPUSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELCZDMY#issuecomment-583373235,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJMAZHAKX5PVTUYTOCROZDRBVJCPANCNFSM4KRMPUSA
.
So as annoying as it is, it does serve a purpose given the whole legacy plugin rewrite system they have in place.
I too support a bypass however. I’d still like it to print the warning to console for support reasons but there’s no reason it has to prevent the server from starting.
The real question is do we remove that return entirely or just offer another system property to bypass? I’m more on the side of a system property myself but open to thoughts. This is a small change so I’ll make it myself after feedback.
@zachbr
Some way to bypass this protection would be nice to have, but I'm not talking about config option, some allot more complicated to do, just to eliminate someone turning this protection off without knowing what it actually does. Like @LogGits said, it could be jvm argument like that same -DisableJavaSafetyCheck and then we could get some scary line at startup informing that Java version is not supported and all that jazz but it would still load. People might want to test new versions of Java without any need to recompile their own version without those 4 lines of code.
Option - is always something nice to have.
I would suggest
+ if (!Boolean.getBoolean("AllowUntestedJavaVersions")) return;
- return;
-DIReallyWantThisJavaVersionAndKnowWhatImDoingISwear
Most helpful comment
-DIReallyWantThisJavaVersionAndKnowWhatImDoingISwear