Skip to content

Invalid reflective access in Enumeration serialization on Scala 3.8+ #795

@WojciechMazur

Description

@WojciechMazur

See scala/scala3#25119

In the Scala 3 Open Community Build we've seen that this project was failing at runtime. It is caused by reflectve access to $outer filed of Enumeration.Value class which is under Scala 2 was published as public, but in the Scala 3 it's emitted as private.
The change has started be active since Scala 3.8 which introduces Scala standard library (including Enumeration) compiled using Scala 3.8

The unsafe access to private $outer member should be fixed on the library end my modifing access to that field, rewriting logic or deprecating these usages

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions