-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPE while processing PRAGMA compiler directive #7
Conversation
Signed-off-by: Lalitha Ananda <lalitha.ananda@oracle.com>
If a PL/SQL procedure declaration has PRAGMA compiler tag, the DDL parser is failing to parser this & throws NPE e.g. PRAGMA SERIALLY_REUSABLE; --> NOT GETTING PARSED procedure wsazl0( azl_request varchar2, response out varchar2 ); end azlwbs_jos; DDLParser.jjt has the below logic: for packageDeclaration processing it's having switch case for cursorDeclaration,functionSpec,procedureSpec but the pragmaDeclaration case is inside the default case & it never reaches the else part of the if else block in default case. I've moved it above default case. final public void packageDeclaration(PLSQLPackageType packageType) throws ParseException { Original: Proposed FIX: |
Reproducer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update copyright year
Signed-off-by: Lalitha Ananda <lalitha.ananda@oracle.com>
oracleddlparser/src/main/jjtree/org/eclipse/persistence/tools/oracleddl/parser/DDLParser.jjt
Outdated
Show resolved
Hide resolved
Signed-off-by: Lalitha Ananda <lalitha.ananda@oracle.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks Lukas. |
@lukasj Lukas, would you please let me know how to integrate the latest oracleddlparser.jar with eclipselink project? |
Signed-off-by: Lalitha Ananda lalitha.ananda@oracle.com