01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tctest.transparency;
05:
06: /* Super class contains private members */
07: public class SubClassD extends NotInstrumented implements Cloneable {
08:
09: public int d = 2;
10:
11: public synchronized void method1() {
12: toString();
13: }
14:
15: public synchronized Object clone() {
16: try {
17: return super .clone();
18: } catch (CloneNotSupportedException e) {
19: throw new RuntimeException(e);
20: }
21: }
22:
23: public String toString() {
24: return "SubClassD::" + super .toString();
25: }
26:
27: public boolean equals(Object o) {
28: if (this == o)
29: return true;
30: if (o instanceof SubClassD) {
31: return d == ((SubClassD) o).d && super .equals(o);
32: }
33: return false;
34: }
35: }
|