spring-webflow icon indicating copy to clipboard operation
spring-webflow copied to clipboard

Running with Framework 6.2.0-SNAPSHOT gives NoSuchMethodException for parameterless action

Open transentia opened this issue 11 months ago • 1 comments

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.

transentia avatar Mar 27 '24 04:03 transentia

Thanks for the report. Could you extract a small reproducer?

rstoyanchev avatar Mar 27 '24 09:03 rstoyanchev