-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0
-
None
-
b28
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2151128 | 1.4.2_18 | Dmitriy Samersoff | P3 | Resolved | Fixed | b05 |
JDK-2160990 | 1.4.2_17-rev | Dmitriy Samersoff | P3 | Resolved | Fixed | b10 |
Locale.writeObject sets and reads the hashcode field without any synchronization. As such, even though the hashCode method is synchronized, the hashCode method could return -1 if a separate thread executing writeObject runs in between the assignment and return statements of the hashCode method. And as such, writeObject would write out a value other than -1 if a separate thread executing hashCode runs in between the assignment and defaultWriteObject statements of the writeObject method.
- backported by
-
JDK-2151128 Locale hashcode synchronization is inadequate
- Resolved
-
JDK-2160990 Locale hashcode synchronization is inadequate
- Resolved
- relates to
-
JDK-8062018 [TEST_BUG] java/util/Locale/Bug4518797.java failed
- Resolved