A system and method implementable in a JAVA.RTM. application for providing
C++ language friend-style access that grants JAVA.RTM. objects access to
methods of another JAVA.RTM. object. The method comprises steps of:
providing a method in the implementing JAVA object for determining the
name of a JAVA object class that has called a method within the
implementing JAVA object; comparing the JAVA object class name against a
list of object names that have been granted access rights to the method
in the implementing JAVA object; and, in response to the comparing, one
of: enabling execution of the method of the implementing JAVA object upon
determination that the calling object class is a member of the list, or,
preventing execution of the method upon determination that the calling
object is not a member of the list.