You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ValueChange.java 608B

123456789101112131415161718192021222324252627
  1. abstract class ValueChange<Q> {
  2. public ValueChange(Q initValue) { }
  3. }
  4. abstract class SyncValueGroup<T> extends ValueChange<T> {
  5. public SyncValueGroup(T initValue) {
  6. super(initValue);
  7. }
  8. public final synchronized void link(SyncValueGroup<T> ... list) { }
  9. }
  10. class SyncValueTest {
  11. class SyncInteger extends SyncValueGroup<Integer> {
  12. public SyncInteger(int val) {
  13. super(new Integer(val));
  14. }
  15. }
  16. private SyncInteger a = new SyncInteger(1);
  17. public void testSyncValueGroup() {
  18. a.link(a);
  19. }
  20. }
  21. aspect X {
  22. before(): call(* *(..)) {}
  23. }