Skip to content

org.springframework.expression.ParseException loses position & Throwable information [SPR-6239] #10907

@spring-projects-issues

Description

@spring-projects-issues

Andrew Liles opened SPR-6239 and commented

The ParseException class (has 3 constructors.

The second takes 'position' and 'cause' but does not pass them to the superclass.

The third constructor takes 'position' but does not pass them to the superclass.

The subclass SpelParseException is the main class that will emit parse exceptions and it calls one of the above-mentioned faulty constructors.

It is a trivial fix, the first case of

super(message);
should be
super(position, message, cause);

and the second should be

super(position, message);


Affects: 3.0 RC1

Referenced from: commits a7f0d50

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions