Skip to content

[plsql] Deprecate AST node ASTKEYWORD_UNRESERVED #7223

Closed

Description

@adangel

Should the generated classes ASTKEYWORD_UNRESERVED and ASTMergeUpdateClause also be deprecated?

Originally posted by @UncleOwen in #7169 (comment)

The parser productions have been deprecated with #5125.
The generated nodes classes should also be deprecated.

The comment for KEYWORD_UNRESERVED is wrong: It says "This is only used to generate a node class". But a node class is not needed. The production below (KEYWORD_NOT_RESERVED) shows, how to define a production without generating node in javacc (using #void).

Current deprecations:
https://docs.pmd-code.org/apidocs/pmd-plsql/latest/deprecated-list.html

Activity

  1. added
    is:deprecation
    on Oct 22, 2026
  2. adangel commented on Oct 22, 2026

    @adangel
    MemberAuthor

    Actually, ASTMergeUpdateClause is not deprecated - it's still needed and used. What has been deprecated, is the production in the parser MergeUpdateClausePrefix, but that didn't generate a node (it is #void).

    So, for now, only ASTKEYWORD_UNRESERVED needs to be deprecated.

  3. changed the title [-][plsql] Deprecate AST nodes `ASTKEYWORD_UNRESERVED` and `ASTMergeUpdateClause`[/-] [+][plsql] Deprecate AST node `ASTKEYWORD_UNRESERVED`[/+] on Oct 22, 2026
  4. added this to the 7.29.0 milestone on Oct 22, 2026
  5. added a commit that references this issue on Oct 23, 2026
    fad60e0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:deprecation

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions