...
Explicitly define the name of the class (superclass here) in the synchronization block. This can be achieved in two ways. Onw One way is to explicitly pass the superclass's instance.Class.forName()
.
Code Block | ||
---|---|---|
| ||
synchronized(SuperclassName.class) { ... } |
...