![]() ![]() 1.7 : The compiler accepts code with features introduced in Java SE 7.Warnings as was done in earlier releases of Java Platform, Standard Edition. However, encoding errors in source files are now reported as errors instead of 1.6 : No language changes were introduced in Java SE 6.Then, from javac docs, we can see that these two arguments are allowed to have the following values: Due to the behaviour of the user property, setting these two properties to 11 means to set the following : įrom the maven-compiler-plugin docs again, and are the -source and -target argument for the Java compiler ( javac). ![]() ![]() It is because every spring boot project will extend the parent pom spring-boot-starter-parent which defines as follows: įrom the maven-compiler-plugin docs, and are the user property for the and config parameters. Seem like you want details to convince you. Springboot just configures a property such that by changing this value, you are implicitly changing maven-compiler-plugin 's and to the same value as what specified in the : However I'm not using the compiler plugin.Īctually, at the end it still uses maven-compiler-plugin to compile. I've seen it specified as just "11" when using maven-compiler-plugin, However I'm not sure if Java 11 would be "1.11" (seems unlikely), and The correct way is to use the followings values in for different Java versions: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |