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: */package com.tc.common.proxy.subpkg;
04:
05: /**
06: * This class is non-public and in a different package as the DelegatingInvoicationHandlerTests. It's sole
07: * purpose to make sure we handle the case where the delegation is asked to invoke a method directly on a
08: * non-accessible class
09: */
10: class PackagePrivateClass implements TestInterface {
11: private static int count = 0;
12:
13: private final int number;
14:
15: PackagePrivateClass() {
16: synchronized (PackagePrivateClass.class) {
17: number = count++;
18: }
19: }
20:
21: // from the public test interface
22: public void method() {
23: System.out.println("I am number " + number);
24: }
25: }
|