Skip to content

Enums are not usable in mixed scala/java projects #16391

Open
@mushtaq

Description

@mushtaq

Compiler version

3.2.1

Minimized code

See this github repo which uses 3 steps to reproduce it:

  • Create a Scala enum
  • Create a Java interface that references the Scala enum
  • Print enum value from a main method a) directly b) via Java interface

Output

Red
null

Expectation

Red
Red

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions