-
Bug
-
Resolution: Fixed
-
P2
-
openjdk8u342
-
b01
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8291648 | openjdk8u352 | Sergey Bylokhov | P2 | Resolved | Fixed | b01 |
The last release of jdk8u includes the fix for JDK-8194154 which 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. One of the app which sets the "user.dir" is Gradle. The Gradle has a notice in the documentation for the user:
"Never use new File(relative path) because this creates a path relative to the current working directory (CWD). Gradle can make no guarantees about the location of the CWD, which means builds that rely on it may break at any time".
But for compatibility reasons they still set the "user.dir" property, so the old plugins will work.
Now that compatibility is broken due to the fix I mention. We found such apps immediately after the release.
I think we should roll it back as soon as possible. Here we can discuss it further.
See some discussion here:
https://mail.openjdk.org/pipermail/jdk8u-dev/2022-July/015249.html
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. One of the app which sets the "user.dir" is Gradle. The Gradle has a notice in the documentation for the user:
"Never use new File(relative path) because this creates a path relative to the current working directory (CWD). Gradle can make no guarantees about the location of the CWD, which means builds that rely on it may break at any time".
But for compatibility reasons they still set the "user.dir" property, so the old plugins will work.
Now that compatibility is broken due to the fix I mention. We found such apps immediately after the release.
I think we should roll it back as soon as possible. Here we can discuss it further.
See some discussion here:
https://mail.openjdk.org/pipermail/jdk8u-dev/2022-July/015249.html
- backported by
-
JDK-8291648 It is no longer possible to change "user.dir" in the JDK8
- Resolved
- relates to
-
JDK-8293461 Add a test for JDK-8290832
- Resolved
-
JDK-8194154 System property user.dir should not be changed
- Closed
(1 links to)