01: /**************************************************************************************
02: * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
03: * http://aspectwerkz.codehaus.org *
04: * ---------------------------------------------------------------------------------- *
05: * The software in this package is published under the terms of the LGPL license *
06: * a copy of which has been included with this distribution in the license.txt file. *
07: **************************************************************************************/package test.enclosingsjp;
08:
09: public class EnclosingTarget {
10: private Object m_field;
11:
12: public EnclosingTarget() {
13: PointcutTarget pt = new PointcutTarget();
14:
15: pt.method1();
16: }
17:
18: public EnclosingTarget(int i) {
19: try {
20: throw new IllegalAccessException("msg2");
21: } catch (IllegalAccessException iae) {
22: ;
23: }
24: }
25:
26: public EnclosingTarget(Object obj) {
27: PointcutTarget pt = new PointcutTarget(1);
28:
29: m_field = obj;
30:
31: pt.setFieldValue(obj);
32: pt.getFieldValue();
33: }
34: }
|