spring-webflow
spring-webflow copied to clipboard
Running with Framework 6.2.0-SNAPSHOT gives NoSuchMethodException for parameterless action
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.
Thanks for the report. Could you extract a small reproducer?