Riverside-Software / sonar-openedge

CABL (Code Analyzer for ABL in SonarQube) - ABL ANTLR4 Parser
https://riverside-software.fr
GNU Lesser General Public License v3.0
63 stars 26 forks source link

DEFINE SERIALIZABLE DATASET throws ParseCancellationException #1141

Closed gquerret closed 1 month ago

gquerret commented 2 months ago

Copied from vscode-abl/vscode-abl#205:

I've seen the same error for this line in another file, so I can only assume proparse doesn't like serializable datasets... TestSerializable.cls:

BLOCK-LEVEL ON ERROR UNDO, THROW.

CLASS Serializable.TestSerializable SERIALIZABLE:

    DEFINE PRIVATE SERIALIZABLE TEMP-TABLE w_TempTableName NO-UNDO
        FIELD FieldName AS INTEGER
        INDEX FieldName IS PRIMARY UNIQUE FieldName.

    DEFINE SERIALIZABLE DATASET ds_Test FOR w_TempTableName.

END CLASS.
[2024-09-10T11:55:29.306+0200] [ERROR] [Glims] Proparse error in 'Serializable\TestSerializable.cls' at position :9:25
[2024-09-10T11:55:29.306+0200] [INFO] [Glims] Compilation successful: Serializable\TestSerializable.cls

It seems to have no problem with the SERIALIZABLE TEMP-TABLE though...

gquerret commented 1 month ago

Fixed in develop branch