On 12/03/2018 18:32, Brian Burkhalter wrote:

Lazily cache the value of the user.dir property on first access. This change is 
for Windows only as there does not appear to be any percentage in doing 
something similar on Unix.

The user.dir property comes from GetCurrentDirectoryW so it will be normalized anyway. Although unsupported, I guess there may be some deployments setting this property on the command line so it is safer to normalize. As relative paths are command then it might be simpler to just change the static initializer to initialize userDir to normalize(props.getProperty("user.dir")).


Reply via email to