Skip to content

Compiling code with Enums in without doing a clean compile causes runtime VerifyError #6664

Closed
@j-mie6

Description

@j-mie6

When compiling code with Enums, unless a clean compile is done, then at runtime when an Enum is encountered (for example, here I have an enum Operator ...) an error like the following is triggered:

[error] (run-main-b) java.lang.VerifyError: Bad type on operand stack
[error] Exception Details:
[error]   Location:
[error]     compiler/Parser.createTable()Lscala/collection/immutable/List; @10: invokevirtual
[error]   Reason:
[error]     Type 'compiler/expr/Operator$' (current frame, stack[3]) is not assignable to 'compiler/expr/Operator'
[error]   Current Frame:
[error]     bci: @10
[error]     flags: { }
[error]     locals: { 'compiler/ChimeraParser' }
[error]     stack: { uninitialized 0, uninitialized 0, 'scala/Predef$', 'compiler/expr/Operator$' }
[error]   Bytecode:
[error]     0000000: bb00 4a59 b200 b3b2 02bf b602 c3b6 02c7
[error]     0000010: b702 cab9 02cf 0100 b202 d2b9 02d8 0200
[error]     0000020: c002 da2a ba02 e300 00b2 02e8 b602 ecb6
[error]     0000030: 02ef c002 dab0

This is running 0.16.0-RC3 cross compiling with a 2.12.8 library.

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