2004-11-21 | Paul Boddie | file changeset files shortlog | Fixed ldc* implementations. Added external name identification so that such names can be imported into the namespace where the code is run. Introduced more sophisticated resolution of class names where they are used; for example in the new and *static implementations. |
paul@54 | 1 | public class FieldTest { |
paul@54 | 2 | private int a; |
paul@54 | 3 | protected int b = 123; |
paul@54 | 4 | protected FieldTestClass c; |
paul@54 | 5 | protected FieldTestClass d = null; |
paul@54 | 6 | public FieldTestClass e = new FieldTestClass(456); |
paul@57 | 7 | public FieldTestClass f = new FieldTestClass(b + e.a); |
paul@57 | 8 | public static FieldTestClass g; |
paul@57 | 9 | public static FieldTestClass h = new FieldTestClass(789); |
paul@54 | 10 | } |
paul@54 | 11 | |
paul@54 | 12 | class FieldTestClass { |
paul@54 | 13 | public int a; |
paul@54 | 14 | |
paul@54 | 15 | public FieldTestClass(int a) { |
paul@54 | 16 | this.a = a; |
paul@54 | 17 | } |
paul@54 | 18 | } |