Skip to content

Referencing inner type fails in bytecode generator #271

@andriy-dmytruk

Description

@andriy-dmytruk

Issue description

Suppose I create an inner type:

ClassDef inner = ClassDef.builder("Inner")...build()
ClassDef def = ClassDef.builder("package.Outer").addInnerType(inner)...build()

Then if I use the inner type with

inner.asTypeDef()

The generated type in bytecode is Inner instead of package.Outer$Inner, which results in a class not found exception.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions