javajavaoptions

Is JAVA_OPTIONS boolean case sensitive?


I am trying to set JAVA_OPTIONS to my application

-Djava.net.preferIPv4Stack=true

Can I also set it as -Djava.net.preferIPv4Stack=True with the capital T? Does the case matter?


Solution

  • This is the occasion when the difference between being a good programmer and being a good designer matters:

    Summarizing: If you are using Open JDK 15, there is no difference between "True" or "true" values, but you cannot be sure that in future versions such difference will matter. I recommend you to stick to the docummented allowed values.