• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

lambdas and Java 7

 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • 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: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Likes 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: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Awesome. Thanks Joe.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic