[jdk8u-dev] RFR: 8290832: It is no longer possible to change "user.dir" in the JDK8

Andrew John Hughes andrew at openjdk.org
Fri Jul 29 01:08:48 UTC 2022


On Fri, 22 Jul 2022 17:45:49 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> This is the request to revert the fix for [JDK-8194154](https://bugs.openjdk.org/browse/JDK-8194154) integrated to the [openjdk8u342](https://github.com/openjdk/jdk8u/commit/5fcfb7acbe340c8347bd47413a36dd0b1e267dc1)
>> 
>> The fix for [JDK-8194154](https://bugs.openjdk.org/browse/JDK-8194154) disabled the possibility to change the "user.dir" property.
>> Changing the "user.dir" was not recommended from the beginning but it was not forbidden, so there are some old applications that rely on the old behavior. 
>> 
>> For compatibility reasons, it would be good to restore the old behavior.
>> 
>> Note that the test is simplified and saved under a different name, now it will check just the possibility to change the 'user.dir' using a simple path and name.
>
> The patch is updated as requested, the test will be pushed separately.

Thanks for catching this @mrserb and the patch itself looks like a clean backout to me.

However, I suggest we do this on https://github.com/openjdk/jdk8u for an interim 8u345 release.  I've just requested that version from ops and will update the jcheck rules on 8u when that is created.

Presumably we'll do the test under a different bug?

-------------

PR: https://git.openjdk.org/jdk8u-dev/pull/88


More information about the jdk8u-dev mailing list