Skip to content

[jdbc-v2] Antl4 parser and lexer don't use logger and prints to stderr instead #2428

@Gerrit-K

Description

@Gerrit-K

Description

The lexer and parser from Antlr4 can have configured error listeners via addErrorListener(...), but this is currently not used. By default, it uses the ConsoleErrorListener, which prints to stderr (see here).

Steps to reproduce

  1. Parse a statement with errors
  2. Observe logs to stderr

Expected Behaviour

The components should use a proper logger, as everything else does in the JDBC driver.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions