Patent ID: 7669184

Claim:
A machine-readable medium comprising one or more sequences of instructions stored therein, which instructions, when executed by one or more processors, cause the one or more processors to carry out the steps of: in response to an invocation of a first programmatic method of a reflective proxy that corresponds to a first class, identifying a second class that encloses the first class, wherein identifying the second class comprises: obtaining a class index from an enclosing method attribute stored in a binary file created for the first class, wherein the class index specifies a first location in a constant pool table stored in the binary file, wherein the binary file is created by a compiler when compiling the first class, obtaining, from the first location, a name index for the second class, wherein the name index specifies a second location in the constant pool table, and obtaining, from the second location, a name of the second class; and returning the name of the second class, wherein the first class is one of (a) a local class that is declared within a second programmatic method that is declared within the second class and (b) an anonymous class that has no declared name.