Re: interfaces with default methods on actions

2016-06-11 Thread Lukasz Lenart
2016-06-10 19:22 GMT+02:00 Adam Brin :
> 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.

The Java 8 plugin is using ASM5, normally Struts still depends on ASM3


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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



Re: interfaces with default methods on actions

2016-06-11 Thread Adam Brin
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  wrote:
> 
> 2016-06-10 1:04 GMT+02:00 Adam Brin :
>> 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-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 


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