掲示板

Liferay 6.2 SDK still targets Java 1.6?

thumbnail
8年前 に William Gosse によって更新されました。

Liferay 6.2 SDK still targets Java 1.6?

Liferay Master 投稿: 533 参加年月日: 10/07/04 最新の投稿
I'm curious why the 6.2 SDK's build.properties file still has these to settings in them:
##
## Compiler
##

ant.build.javac.source=1.6
ant.build.javac.target=1.6

Can't we at least move to 1.7 by default now?

This actually drove me a little nuts till I realized that these were being set in this file.
thumbnail
8年前 に David H Nebinger によって更新されました。

RE: Liferay 6.2 SDK still targets Java 1.6?

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
The source (and most if not all of the 3rd party jars) all target 1.6, but that doesn't mean you need to.

In this context, it means the source leverages language features of 1.6 only and should be compiled to run on a 1.6 or newer JVM. It doesn't mean you can't use 1.7.

As far as the runtime goes, sure you would want to use a later version, especially if you want support from Oracle. You can certainly run in 1.7 (and later 6.2 releases) or 1.8 without issue.