Skip to content

inline together with private object might generate code that throws IllegalAccessError #12160

Closed
@scf37

Description

@scf37

Compiler version

3.0.0-RC3

Minimized code

https://github.com/scf37/fpscala2/tree/scala3-bug

checkout and run sbt run

Output

java.lang.IllegalAccessError: failed to access class tethys.readers.JsonReaderInternal$ProductArray$ from class me.scf37.fpscala2.controller.TodoRequest$ (tethys.readers.JsonReaderInternal$ProductArray$ and me.scf37.fpscala2.controller.TodoRequest$ are in unnamed module of loader 'app')

Expectation

Successful execution

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