-
Bug
-
Resolution: Fixed
-
P3
-
7, 8
-
b93
-
Not verified
see discussion on concurrency-interest mailing list;
http://cs.oswego.edu/pipermail/concurrency-interest/2013-March/010935.html
java.lang.Thread
private char name[];
public final void setName(String name) {
checkAccess();
this.name = name.toCharArray();
}
public final String getName() {
return String.valueOf(name);
}
On the surface, set/getName() are not correctly synchronized,
getName() could observe a partially filled char array
http://cs.oswego.edu/pipermail/concurrency-interest/2013-March/010935.html
java.lang.Thread
private char name[];
public final void setName(String name) {
checkAccess();
this.name = name.toCharArray();
}
public final String getName() {
return String.valueOf(name);
}
On the surface, set/getName() are not correctly synchronized,
getName() could observe a partially filled char array