[
https://issues.apache.org/jira/browse/WICKET-6357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15967756#comment-15967756
]
Andrea Del Bene commented on WICKET-6357:
-----------------------------------------
For those who liked to use lambda factories, I've ported them to WicketStuff:
https://github.com/wicketstuff/core/tree/master/wicketstuff-lambda-components
(use version 8.0.0-SNAPSHOT)
> Lambda in Link stop working
> ---------------------------
>
> Key: WICKET-6357
> URL: https://issues.apache.org/jira/browse/WICKET-6357
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 8.0.0-M5
> Reporter: Vít Kotačka
>
> Following code is working in Wicket *8.0.0-M4*, but can't be compiled in
> version *8.0.0-M5*:
> {code:java}
> add(Link.onClick("homePageLink", link ->
> setResponsePage(getApplication().getHomePage())));
> {code}
> Compilation (via _Gradle_) gives following input:
> {code}
> /home/guido/projects/Norway-ePass/RegiS/src/main/java/com/gemalto/ics/norway/regis/wicket/hello/WesPocPage.java:13:
> error: method onClick in class Link<T> cannot be applied to given types;
> add(Link.onClick("homePageLink", link ->
> setResponsePage(getApplication().getHomePage())));
> ^
> required: no arguments
> found: String,(link)->se[...]ge())
> reason: actual and formal argument lists differ in length
> where T is a type-variable:
> T extends Object declared in class Link
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)