Skip to content

Ammonite REPL cannot run on Java 21 #1380

Closed
@guofengzh

Description

@guofengzh

Because of the issue ClassfileParser: allow missing param names (for JDK 21), Ammonite REPL cannot run on Java 21.

Scala 3.3.1 has fixed its issue. It is kind to release a new Ammonite version that supports Scala 3.3.1 soon.

When runs Ammonite on Java 21, I got:

Loading...
Welcome to the Ammonite Repl 2.5.11 (Scala 3.2.2 Java 21)
@ error while loading ElementType,
class file java/lang/annotation/ElementType.class is broken, reading aborted with class java.lang.RuntimeException
bad constant pool index: 0 at pos: 1220
error while loading AccessFlag,
class file java/lang/reflect/AccessFlag.class is broken, reading aborted with class java.lang.RuntimeException
bad constant pool index: 0 at pos: 5189

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