Skip to content

Java/ANTLR: example C fails to build with Java 20 due to case mismatch #455

Closed

Description

@andreasabel

ANTLR/Java does not deal well with a parser name cParser because with Java 20 cParserListerner becomes an unbound symbol.
The lower case c is due to the package name sanitization introduced in:

So this problem exists since 2.8.4, but many only surfaced with recent Java versions that are more strict with case.

A solution is to use a capitial CamelCase for the prefix of Parser and Lexer, but keep the snake_case for the package name.

Activity

  1. added this to the 2.9.5 milestone on Jul 26, 2023
  2. self-assigned this
    on Jul 26, 2023
  3. added 2 commits that reference this issue on Jul 26, 2023
    b4d755c
    dbd24b0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions