#3087: Force-enable multi-release jar file support for JDK9+ via System property

This commit is contained in:
Janmm14 2021-05-18 10:34:53 +00:00 committed by GitHub
parent b60a30c705
commit a0b7f09252
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,11 @@ public class BungeeCordLauncher
{ {
Security.setProperty( "networkaddress.cache.ttl", "30" ); Security.setProperty( "networkaddress.cache.ttl", "30" );
Security.setProperty( "networkaddress.cache.negative.ttl", "10" ); Security.setProperty( "networkaddress.cache.negative.ttl", "10" );
// For JDK9+ we force-enable multi-release jar file support #3087
if ( System.getProperty( "jdk.util.jar.enableMultiRelease" ) == null )
{
System.setProperty( "jdk.util.jar.enableMultiRelease", "force" );
}
OptionParser parser = new OptionParser(); OptionParser parser = new OptionParser();
parser.allowsUnrecognizedOptions(); parser.allowsUnrecognizedOptions();