CDV ❯ Methods with the synchronized modifier in adaptable classes are not instrumented for autolocks
-
Bug
-
Status: Resolved
-
2 Major
-
Resolution: Won't Fix
-
Byte Code Transform
-
-
interfaces
-
Reporter: cdennis
-
November 24, 2009
-
0
-
Watchers: 2
-
February 12, 2014
-
February 12, 2014
Description
The TransparencyClassAdapter will not add wrapper methods containing cluster locking code around synchronized methods in adaptable (but not portable) classes. This means for example that the following code in an adaptable class (e.g. a subclass of a literal) cannot be autolocked:
private synchronized void method() { //do stuff }
This equivalent can be made autolocked because the TransparencyCodeAdapter has no such limitation.
private void method() { synchronized (this) { //do stuff } }
DSO is discontinued