struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Brin <ab...@digitalantiquity.org>
Subject Re: interfaces with default methods on actions
Date Fri, 10 Jun 2016 17:22:37 GMT
I’ll give it a try without the java8 plugin installed — but first I have to figure out
the dependency management issues around ASM, as struts2 seems to still be dependent on both
ASM 5x and ASM 3x (via XWork’s DefaultClassFinder), and we’re getting startup errors.

-- 
_________________________________________________________
Adam Brin
Director of Technology, Digital Antiquity
480.965.1278

> On Jun 9, 2016, at 11:42 PM, Lukasz Lenart <lukaszlenart@apache.org> wrote:
> 
> 2016-06-10 1:04 GMT+02:00 Adam Brin <abrin@digitalantiquity.org>:
>> I've been experimenting with Struts 2.5 and trying to simplify our Struts2
>> code by using Java8's new interface features with a series of default
>> methods with common getters/setters around pagination. But when I test it ,
>> the action's setter's aren't called.
>> 
>> According to this page (
>> https://struts.apache.org/docs/java-8-support-plugin.html) it seems like
>> the only supported java8 feature is:
>> 
>>   -
>> 
>>   Lambda Expressions in actions when using them with the Convention plugin
>> 
>> Are there plans to support other Java8 features in actions or has anyone
>> else tried using default methods with success?
> 
> It's a case with scanning classes to find actions. And the plugin
> should be dropped in Struts 2.5 ;-)
> 
> Basically this was resolved in OGNL some time ago
> https://github.com/jkuhnert/ognl#release-notes---version-3012
> 
> Can you prepare a small demo?
> 
> 
> Regards
> -- 
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message