1.1 --- a/vmtest/src/test/java/org/apidesign/bck2brwsr/tck/CloneTest.java Mon Jan 07 16:46:09 2013 +0100
1.2 +++ b/vmtest/src/test/java/org/apidesign/bck2brwsr/tck/CloneTest.java Mon Jan 07 17:22:59 2013 +0100
1.3 @@ -30,7 +30,7 @@
1.4
1.5 @Compare public Object notSupported() {
1.6 try {
1.7 - return new CloneTest().clone();
1.8 + return this.clone();
1.9 } catch (CloneNotSupportedException ex) {
1.10 return ex.getClass().getName() + ":" + ex.getMessage();
1.11 }
1.12 @@ -46,7 +46,7 @@
1.13 }
1.14
1.15 @Compare public int sameReference() throws CloneNotSupportedException {
1.16 - CloneTest self = new CloneTest();
1.17 + CloneTest self = this;
1.18 Clnbl orig = new Clnbl();
1.19 self.value = 33;
1.20 orig.ref = self;