On 24/08/2016 07:43, Aritz Maeztu wrote: > I've already posted the issue in StackOverflow: > http://stackoverflow.com/questions/39096941/does-tomcats-el-stream-api-make-sense > > Using Tomcat 8.0.30, I've implemented some EL accesses to the stream > API. However, I've found that this expression: > > |#{testBean.values.stream().anyMatch(str ->str == 'Test1')} Returns a > ||org.apache.el.stream.Optional type. Looking at the API documentation it > also says that. However, in the standard Java Stream API this kind of > method returns a boolean, which is the result of evaluating the > Predicate and see if any object in the stream matches it.|
Yes, the EL 3.0 Stream API is not identical to the Java 8 Stream API. This is because the EL 3.0 Stream API was finalized before the Java 8 API. As a result, there are some differences. This is one of them. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org