From 87b0c4f851179828721f8f391778fe4d9107ba74 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Thu, 25 Jul 2024 11:17:49 +0200 Subject: [PATCH] [plsql] Fix ScalarDataTypeName parsing Fixes #5133 --- docs/pages/release_notes.md | 1 + pmd-plsql/etc/grammar/PLSQL.jjt | 8 ++------ .../pmd/lang/plsql/ast/PlsqlTreeDumpTest.java | 5 +++++ .../lang/plsql/ast/Issue5133SubTypeDefinition.pls | 8 ++++++++ .../lang/plsql/ast/Issue5133SubTypeDefinition.txt | 13 +++++++++++++ 5 files changed, 29 insertions(+), 6 deletions(-) create mode 100644 pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/ast/Issue5133SubTypeDefinition.pls create mode 100644 pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/ast/Issue5133SubTypeDefinition.txt diff --git a/docs/pages/release_notes.md b/docs/pages/release_notes.md index 2826a1432b..24f0987147 100644 --- a/docs/pages/release_notes.md +++ b/docs/pages/release_notes.md @@ -50,6 +50,7 @@ This is a {{ site.pmd.release_type }} release. * [#5086](https://github.com/pmd/pmd/pull/5086): \[plsql] Fixed issue with missing optional table alias in MERGE usage * [#5087](https://github.com/pmd/pmd/pull/5087): \[plsql] Add support for SQL_MACRO * [#5088](https://github.com/pmd/pmd/pull/5088): \[plsql] Add support for 'DEFAULT' clause on the arguments of some oracle functions + * [#5133](https://github.com/pmd/pmd/issues/5133): \[plsql] AssertionError: Root of the tree should implement RootNode for a PL/SQL type declaration * cli * [#5120](https://github.com/pmd/pmd/issues/5120): \[cli] Can't start designer under Windows * core diff --git a/pmd-plsql/etc/grammar/PLSQL.jjt b/pmd-plsql/etc/grammar/PLSQL.jjt index c5d970e242..787470b79e 100644 --- a/pmd-plsql/etc/grammar/PLSQL.jjt +++ b/pmd-plsql/etc/grammar/PLSQL.jjt @@ -993,12 +993,8 @@ ASTScalarDataTypeName ScalarDataTypeName() : LOOKAHEAD(4) (