org.aspectj/tests/bugs/interfaceNames/TransactionTest.java
jhugunin 0a175d2d03 FIXED: Bugzilla Bug 32421
can't resolve nested public interfaces 

FIXED: Bugzilla Bug 32399  
   Incorrect binding of protected (marker) interfaces
2003-03-06 22:12:00 +00:00

31 lines
660 B
Java

import sub.ExecutionMonitor;
import sub.ObserverProtocol;
public class TransactionTest {
public static void main(String[] args) {
}
static Transaction theTransaction;
private void assertCommitted() {
theTransaction.getCount("method-execution", "commit");
}
static aspect MonitorTest {
declare parents: Transaction implements ExecutionMonitor.MonitoredItem;
}
}
class Transaction {
}
aspect TransactionControl {
void begin() {
CommitObserver.aspectOf().add(this);
}
static aspect CommitObserver extends ObserverProtocol {
declare parents: TransactionControl implements Observer;
}
}