-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 8, 11, 15, 16
-
Component/s: core-libs
-
b23
reported in https://github.com/openjdk/jdk/pull/776
sun/net/ftp/imp/FtpClient::dateFormats is an array of SimpleDateFormat which are shared among all instances of FtpClient, the fact that SimpleDateFormat isn't thread-safe renders FtpClient to be non-thread-safe as well. the easiest fix would be to make the only usage of dateFormats (parseRfc3659TimeValue method) synchronized.
sun/net/ftp/imp/FtpClient::dateFormats is an array of SimpleDateFormat which are shared among all instances of FtpClient, the fact that SimpleDateFormat isn't thread-safe renders FtpClient to be non-thread-safe as well. the easiest fix would be to make the only usage of dateFormats (parseRfc3659TimeValue method) synchronized.
- relates to
-
JDK-8255078 sun/net/ftp/imp/FtpClient$MLSxParser uses wrong datetime format
-
- Resolved
-