• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

lambdas and Java 7

 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi author,

I haven't yet downloaded Java 8 JDK but I was wondering if java 8 compiler can compile code having lambdas targetting java 7 JVM.

Thanks,
Pradeep
 
Joe Harry
Ranch Hand
Posts: 10045
3
Eclipse IDE Mac PPC Ubuntu
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer is no and yes. No it does not work out of the box, yes with a tool like Retrolambda (https://github.com/orfjackal/retrolambda) you can port it to Java 7.
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Awesome. Thanks Joe.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic