javaclass

Changeset

57:4d42b375a770
2004-11-14 Paul Boddie raw files shortlog changelog graph Added tests of static initialisation.
tests/FieldTest.java (file)
     1.1 --- a/tests/FieldTest.java	Sun Nov 14 22:46:38 2004 +0100
     1.2 +++ b/tests/FieldTest.java	Sun Nov 14 22:47:39 2004 +0100
     1.3 @@ -4,7 +4,9 @@
     1.4      protected FieldTestClass c;
     1.5      protected FieldTestClass d = null;
     1.6      public FieldTestClass e = new FieldTestClass(456);
     1.7 -    public static FieldTestClass f;
     1.8 +    public FieldTestClass f = new FieldTestClass(b + e.a);
     1.9 +    public static FieldTestClass g;
    1.10 +    public static FieldTestClass h = new FieldTestClass(789);
    1.11  }
    1.12  
    1.13  class FieldTestClass {