On Tue, 1 Aug 2023 08:33:24 GMT, David Holmes <dhol...@openjdk.org> wrote:
>> @dholmes-ora I confirmed there is no nest-host or nest-members attributes >> generated by this patch for a top level class which doesn't have any >> nest-members. Is that what you wanted to verify? > > @ashu-mehra That was one case. I also want to know that you have tested > deeply nested classes; and hidden classes (if applicable). Thanks. @dholmes-ora I verified the case for hidden dynamically injected classes. The dumped class data for a hidden dynamically injected class does not have any Nest-Host attribute. When generating these classes dynamically the VM does not expose nest-host information in the class data, but sets the nest-host directly in the InstanceKlass. Also verified the case for deeply nested classes by creating chain of nested classes as: class DeepNest { class NestLvl1 { class NestLvl2 { class NestLvl3 { } } } } Only `DeepNest` has the `NestMembers` attribute which lists all the NestLvl[1-3] classes. Rest all have `DeepNest` as the `NestHost` attribute. Does this cover all the cases you flagged? ------------- PR Comment: https://git.openjdk.org/jdk/pull/15005#issuecomment-1661077708