摘要 |
A system and method for transforming name synthesized classes in response to dynamic class updates to existing classes, featuring the ability to provide replacement synthetic names for reloaded name synthesized classes. According to a preferred embodiment, the name synthesized classes are anonymous classes. The method stores and tracks the synthetic names for each name synthesized class as they are loaded or reloaded, intercepting the loading of the classes before being defined in a virtual machine. Then, the method maps the synthetic name of the name synthesized classes for each dynamic class update to replacement synthetic names of previously loaded name synthesized classes. In addition, the concepts of the invention are applicable to other types of name synthesized classes, such as local classes, bridge methods and lambda expressions. |