Skip to content

improve parser-based validation for SpEL snippets #1237

Closed

Description

@martinlippert

At the moment, the validation logic for SpEL expressions is pretty simple using the standard SpEL parser that comes with Spring itself. If the parser reports a problem while parsing, this problem is reported as a diagnostic for the whole expression.

The goal is to use a more sophisticated diagnostics detection for SpEL expressions and report more fine grained and detailed diagnostics. Maybe we need to adopt an ANTLR-based parser for this (instead of the standard SpEL parser), but that depends on the features the parser offers for this more detailed diagnostics.

Activity

  1. added
    for: eclipse
    for: vscode
    on Apr 18, 2024
  2. added this to the 4.23.0.RELEASE milestone on Apr 18, 2024
  3. BoykoAlex commented on Jun 12, 2024

    @BoykoAlex
    Contributor

    Hopefully fixed with 15f20b6 exceptfor embedded inside SQL queries which is be addressed via #1270

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

Metadata

Metadata

Assignees

Labels

for: eclipsefor: vscodetheme: spel-supporttheme: validationtype: enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions