Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2078081 | 5.0 | Ross Knippel | P1 | Resolved | Fixed | b35 |
A piece of code that is written as follows:
String s = "";
while (s == "") { }
...is seen to produce inconsistent results when it is embedded within a highly threaded program having thousands of lines of code. Under IBM's VM, this always evaluates as TRUE. With Sun's VM, the loop is occasionally ignored.
String s = "";
while (s == "") { }
...is seen to produce inconsistent results when it is embedded within a highly threaded program having thousands of lines of code. Under IBM's VM, this always evaluates as TRUE. With Sun's VM, the loop is occasionally ignored.
- backported by
-
JDK-2078081 Inconsistent results when comparing string references
-
- Resolved
-