Skip to content

compileJavacc emits JavaCC warnings for shadowed literals and unreachable DATA_TYPE branches #2403

Description

@dengliming
Warning: RR cannot be matched as a string literal token. It will be matched as the non string literal token of kind 149.
Warning: RS cannot be matched as a string literal token. It will be matched as the non string literal token of kind 149.
Warning: TEXT cannot be matched as a string literal token. It will be matched as the non string literal token of kind 407.
Warning: TIMESTAMPTZ cannot be matched as a string literal token. It will be matched as the non string literal token of kind 92.
Warning: TIMEZONE cannot be matched as a string literal token. It will be matched as the non string literal token of kind 522.
Warning: TINYTEXT cannot be matched as a string literal token. It will be matched as the non string literal token of kind 407.
Warning: UR cannot be matched as a string literal token. It will be matched as the non string literal token of kind 149.
Warning: MATCHING cannot be matched as a string literal token. It will be matched as the non string literal token of kind 522.
Warning: DISTRIBUTED cannot be matched as a string literal token. It will be matched as the non string literal token of kind 522.
Warning: RECOVERY cannot be matched as a string literal token. It will be matched as the non string literal token of kind 522.
Warning: Line 748, Column 5: Regular Expression choice : K_BYTES can never be matched as : DATA_TYPE
Warning: Line 748, Column 5: Regular Expression choice : K_BINARY can never be matched as : DATA_TYPE
Warning: Line 748, Column 5: Regular Expression choice : K_BOOLEAN can never be matched as : DATA_TYPE
Warning: Line 748, Column 5: Regular Expression choice : K_UNSIGNED can never be matched as : DATA_TYPE
Warning: Line 748, Column 5: Regular Expression choice : K_SIGNED can never be matched as : DATA_TYPE
Warning: Line 748, Column 5: Regular Expression choice : K_CHARACTER can never be matched as : DATA_TYPE
Warning: Line 748, Column 5: Regular Expression choice : K_CHAR can never be matched as : DATA_TYPE

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions