Re: Lambda expression question on Tomcat_8_0_15

2014-12-16 Thread Mark Thomas
On 16/12/2014 16:32, Anup Aggarwal wrote: > Thanks for the response , > > So the value itself is returned and not an ELExpression, The API said > A LambdaExpression is created when an EL expression containing a Lambda > expression is evaluated. The Javadoc for ELProcessor.eval() says nothing of t

Re: Lambda expression question on Tomcat_8_0_15

2014-12-16 Thread Anup Aggarwal
Thanks for the response , So the value itself is returned and not an ELExpression, The API said A LambdaExpression is created when an EL expression containing a Lambda expression is evaluated. So I figured that we will always get back a LambdaExpression. Now I am trying to print some values in th

Re: Lambda expression question on Tomcat_8_0_15

2014-12-15 Thread Mark Thomas
On 15/12/2014 21:13, David Wall wrote: > On 12/15/2014 12:19 PM, Anup Aggarwal wrote: >> Hi, >> >> I am new to learn the LambdaExpression , and I am trying to run a test >> with >> JDK7 on Tomcat_8_0_15 server > > Don't you need JDK8 for Lamdas? Not in this case, no. The EL 3.0 specification incl

Re: Lambda expression question on Tomcat_8_0_15

2014-12-15 Thread David Wall
On 12/15/2014 12:19 PM, Anup Aggarwal wrote: Hi, I am new to learn the LambdaExpression , and I am trying to run a test with JDK7 on Tomcat_8_0_15 server Don't you need JDK8 for Lamdas? - To unsubscribe, e-mail: users-unsubs

Re: Lambda expression question on Tomcat_8_0_15

2014-12-15 Thread Mark Thomas
On 15/12/2014 20:19, Anup Aggarwal wrote: > Hi, > > I am new to learn the LambdaExpression , and I am trying to run a test with > JDK7 on Tomcat_8_0_15 server > > protected void doGet... { > ELProcessor elp = new ELProcessor(); > sos.println("Test: " + (LambdaExpression)

Lambda expression question on Tomcat_8_0_15

2014-12-15 Thread Anup Aggarwal
Hi, I am new to learn the LambdaExpression , and I am trying to run a test with JDK7 on Tomcat_8_0_15 server protected void doGet... { ELProcessor elp = new ELProcessor(); sos.println("Test: " + (LambdaExpression) elp.eval("()->64")); } But I always get this error java.