Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: bump target jdk to 1.7 #21082

Merged
merged 1 commit into from Mar 29, 2018
Merged

cmake: bump target jdk to 1.7 #21082

merged 1 commit into from Mar 29, 2018

Conversation

zhsj
Copy link
Contributor

@zhsj zhsj commented Mar 28, 2018

It's been 10+ years since jdk 1.6 first released. I think it's
safe now to bump the target to 1.6.

Since jdk 1.9/9, the minimal supported version is 1.6/6.
jdk 1.0/10(recently released) only supports 1.7/7.
http://openjdk.java.net/jeps/182

Fixes: http://tracker.ceph.com/issues/23458

@tchaikov tchaikov requested a review from wido March 28, 2018 05:18
@tchaikov
Copy link
Contributor

@wido could you help take a look -- does this change look sane?

@tchaikov tchaikov changed the title java: bump target jdk to 1.6 cmake: bump target jdk to 1.6 Mar 28, 2018
@wido
Copy link
Member

wido commented Mar 28, 2018

@tchaikov Yes, I think it is. However, 1.6 still seems low to me. Java 7 (1.7) is already EOL and Java 8 might go soon as well.

I'd even say that we bump it to 1.8, but yes, 1.6 is better then 1.5

@zhsj
Copy link
Contributor Author

zhsj commented Mar 28, 2018

Actually I prefer dropping such options, and use the default values. For example, people use jar built for centos 7 only on centos 7 by installing official rpms.

However I'm not familiar with java ecosystem, not sure how people use these jars.

@zhsj
Copy link
Contributor Author

zhsj commented Mar 28, 2018

BTW, what's javac version ceph going to support? If the minimal requirement for javac is 9, we can use javac --release 6. So we can get rid of -Xlint:-options.
https://stackoverflow.com/questions/43102787/what-is-the-release-flag-in-the-java-9-compiler

@zhsj
Copy link
Contributor Author

zhsj commented Mar 28, 2018

just checked openjdk on centos 7, it's still 1.8..

@wido
Copy link
Member

wido commented Mar 28, 2018

@zhsj Ubuntu 16.04 is also on Java 8, so we should probably go there.

Could you maybe bump it do 1.8?

@zhsj
Copy link
Contributor Author

zhsj commented Mar 28, 2018

@wido probably no.

I just checked https://download.ceph.com/debian-luminous/dists/ still has jessie, precise, trusty. precise only has java 6, trusty and jessie have java 7.

I don't know if the supported distribution will be changed during minic.

@zhsj
Copy link
Contributor Author

zhsj commented Mar 28, 2018

Oh, https://download.ceph.com/debian-luminous/pool/main/c/ceph/ doesn't have precise. Maybe we can bump to 1.7?

centos 6 seems having openjdk 1.8 too.

jdk 1.7 was released on 2011. For CentOS 6/7, both have openjdk
1.8. For Debian 8(jessie), Ubuntu 14.04(trusty) have openjdk 1.7.
These are the oldest distributions officially built for during
luminous release.

Since jdk 1.9/9, the minimal supported version is 1.6/6.
jdk 1.0/10(recently released) only supports 1.7/7.
http://openjdk.java.net/jeps/182

Fixes: http://tracker.ceph.com/issues/23458
Signed-off-by: Shengjing Zhu <zhsj@umcloud.com>
@zhsj zhsj changed the title cmake: bump target jdk to 1.6 cmake: bump target jdk to 1.7 Mar 28, 2018
@zhsj
Copy link
Contributor Author

zhsj commented Mar 28, 2018

I bumped it to 1.7 and adjusted the commit message.

@wido
Copy link
Member

wido commented Mar 28, 2018

1.7 seems good to me. Later we can bump even further.

@tchaikov tchaikov merged commit 98d766a into ceph:master Mar 29, 2018
@zhsj zhsj deleted the fix-java9 branch March 29, 2018 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants