Removing potential race condition in reflective cycle breaking stuff
This commit is contained in:
parent
86af46fb6c
commit
0307a655d3
1 changed files with 0 additions and 2 deletions
|
|
@ -403,10 +403,8 @@ private[akka] class ActorCell(
|
|||
def lookupAndSetField(clazz: Class[_], actor: Actor, name: String, value: Any): Boolean = {
|
||||
val success = try {
|
||||
val field = clazz.getDeclaredField(name)
|
||||
val was = field.isAccessible
|
||||
field.setAccessible(true)
|
||||
field.set(actor, value)
|
||||
field.setAccessible(was)
|
||||
true
|
||||
} catch {
|
||||
case e: NoSuchFieldException ⇒ false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue