Play framework and Java version

霸气de小男生 提交于 2019-12-01 12:58:16

问题


I would like to know if there is any connection between the play framework version (of my java app) to the java version of my app?

Example: if I use play 2.2.1 and has java8 on my computer. Can I use java8 stuff in my code?

If there is a connection. What is the first play version that works with java8?

Thank you Niv


回答1:


The Play 2.3.x is first version that mentions Java 8, see here

Today morning I was talking with colleague of mine who found running 2.1.x some kind of problematic with Java 8, fortunately for him - he can run his project with lower Java.

I'm afraid, that you can meet some problems with 2.2.x as well, the good option is to create small projects and test the Java 8 features against 2.2.1, or better - rise the app's Play version to 2.3.x, here's the migration tutorial




回答2:


I've also notice on play 2.3.7 that it has some problems with recognise static methods in interfaces



来源:https://stackoverflow.com/questions/29061300/play-framework-and-java-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!