Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] lock() and unlock() pointcuts with Object.wait()

I don't *think* so. AspectJ is simply looking for the monitorenter/monitorexit bytecodes and inserting advice calls. Calling Object.wait() isn't recognized as related to synchronization.

cheers
Andy


On 6 January 2014 11:49, Jonathan Mace <jcmace@xxxxxxxxxxxx> wrote:
Do the lock and unlock synchronization pointcuts get triggered when a thread calls wait inside a synchronized block?

ie.

synchronized(this) {
  // blah
  wait();
  // blah
}

Would this trigger the following?

lock()
unlock()
lock()
unlock()

Cheers,

Jon

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top