wait/notify on DSO literals might not work as expected.
-------------------------------------------------------
Key: CDV-739
URL: https://jira.terracotta.org/jira//browse/CDV-739
Project: Community Development
Issue Type: Bug
Components: Byte Code Transform
Reporter: Tim Eck
Assignee: Issue Review Board
It isn't well known, but autolocking a method that does something like:
String s = "bob";
syncrhonized(s) {
//
}
will obtain dso lock based on the value (not the identity) of the String. It
doesn't matter if the String instance has been referred to by a shared object
or not. This feature is known as literal autolocks.
The suprising thing (provided literal autolocks aren't surprising enough) is
that wait/notify() on the String instance does not do anything (it is local
only)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.terracotta.org/jira//secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev