javaclass

Changeset

30:ffd0431b8307
2004-11-11 Paul Boddie raw files shortlog changelog graph Added a test of instantiation within an <init> method in order to determine whether the correct invocation is used.
tests/ValueSubclass.java (file)
     1.1 --- a/tests/ValueSubclass.java	Thu Nov 11 15:25:12 2004 +0100
     1.2 +++ b/tests/ValueSubclass.java	Thu Nov 11 16:48:41 2004 +0100
     1.3 @@ -1,11 +1,12 @@
     1.4  public class ValueSubclass extends Value {
     1.5 +    public Value tmp;
     1.6  
     1.7      /**
     1.8       * Test of subclass initialisation with super usage and foreign object initialisation.
     1.9       */
    1.10      public ValueSubclass(int x) {
    1.11          super(x);
    1.12 -        Value tmp = new Value(42);
    1.13 +        tmp = new Value(42);
    1.14      }
    1.15  
    1.16      /**