Skip to content

An action without parameters results in NoSuchMethodException starting with Spring Framework 6.2.0-M1 #1802

@transentia

Description

@transentia

Long-established app. uses Webflow 3.0.0.
Thought I'd try the upgrade to Framework 6.2.0-SNAPSHOT...see what breaks.

This code broke:

public class ExistingReportActions extends FormAction {
    ...

    public Event evaluateExistingReport() {
        ...
    }

Rectified by supplying the 'missing' RequestContext parameter explicitly:

public class ExistingReportActions extends FormAction {
    ...

    public Event evaluateExistingReport(RequestContext requestContext) {
        ...
    }

The flow xml remains as:

    <!-- *** existingReport MUST BE THE FIRST STATE in the flow *** -->
    <action-state id="existingReport">
        <evaluate expression="existingReportActions.evaluateExistingReport"/>
        ....
    </action-state>

Eliding the RequestContext parameter used to be allowable. It appears that it no longer is.

A fairly trivial difference, but a breaking one nonetheless.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions