Skip to content

allow figuring out the enclosing class of a local/anonymous class declared in a static/instance/field initializer #509

@Ladicek

Description

@Ladicek

Currently, both ClassInfo.enclosingClass() and enclosingMethod() return null in this case. To avoid breaking compatibility, we should add a new method:

  • enclosingClassAlways(): returns an enclosing class for member/local/anonymous classes

Note that this will require incrementing the persistent index format.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions