An apparatus and method provide a cache for analyzed program information
when no class file can be identified. When loading a class, if there is
an identifiable class file for the class, the class file is checked to
determine if analyzed program information is attached. If so, the
analyzed program information can be directly used without the overhead of
analyzing the program information again. If there is no identifiable
class file for the class, a cache is checked to see if there is an entry
in the cache corresponding to the class. If there is no entry in the
cache corresponding to the class, the program information is analyzed and
saved in a cache entry for future use. If there is an entry in the cache
corresponding to the class, the analyzed program information is retrieved
and used, thereby saving the time required to repeatedly analyze the
program information.