| US 7,493,601 B2 | ||
| System and method for providing access to programmer created JAVA classes | ||
| Joseph A. Gimness, Tucson, Ariz. (US); Jason L. Peipelman, Tucson, Ariz. (US); and Paul A. Jennas, II, Tucson, Ariz. (US) | ||
| Assigned to International Business Machines Corporation, Armonk, N.Y. (US) | ||
| Filed on Nov. 19, 2004, as Appl. No. 10/993,743. | ||
| Prior Publication US 2006/0117296 A1, Jun. 01, 2006 | ||
| Int. Cl. G06F 9/44 (2006.01); G06F 9/45 (2006.01) | ||
| U.S. Cl. 717—131 [717/128; 717/139; 717/148; 717/153] | 10 Claims |
| 1. A computer implemented method for granting one or more first object-oriented programming language classes access to a method
of an implementing class that is created without granting unnecessary access to other methods within that implementing class,
said method comprising the steps of:
providing an array comprising a list of names of first classes that have been granted access rights to said method in said
implementing class;
providing a method in said implementing class for determining the name of a first class that has called a method within the
implementing class, said method creating an exception object prior to accessing said method within the implementing class
to perform a stack traceback to determine the name of the class that has called a method within the implementing first class;
comparing said class name against said list of first classes that have been granted access rights to said method in said implementing
class; and, one of:
executing code of said method of the implementing class upon determination that said calling class is a member of said list,
or, preventing execution of said code in said method upon determination that said calling class is not a member of the list.
|