Skip to content

JEP 401 Support value keyword #1031

Description

@NolwennD

Vahalla is coming! But not too quick, it will be in preview in 28 (march 2027). So it’s time to support the new keyword value.

Small example

public value record Vahalla(String value) {}

Actually with version 2.10.3 error is

npx prettier --plugin=prettier-plugin-java --write "**/*.java"
src/main/java/wallet/Vahalla.java
[error] src/main/java/wallet/Vahalla.java: Error: Failed to parse: (program (package_declaration (identifier)) (method_declaration (modifiers (visibility)) type: (type_identifier) (ERROR (identifier)) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) body: (block)))

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