[ https://issues.apache.org/jira/browse/ZOOKEEPER-1963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14066616#comment-14066616 ]
Patrick Hunt commented on ZOOKEEPER-1963: ----------------------------------------- By default we still target jdk 5 in build.xml and I believe the docs explicitly say 1.6 and later. {noformat} <property name="javac.target" value="1.5" /> <property name="javac.source" value="1.5" /> {noformat} It's easy if you want to have your own build target another release - just set one or both of these parameters when running ant. That's what we do with our Apache Jenkins Jobs for jdk7 and jdk8, etc... That said this is something that should be discussed on the dev list, as it's a pretty big change. We recently had such a discussion and there was no interest at the time to move. So this is probably going to stay for the time being unless new consensus can be reached. > Make JDK 7 the minimum requirement for Zookeeper > ------------------------------------------------ > > Key: ZOOKEEPER-1963 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1963 > Project: ZooKeeper > Issue Type: Wish > Reporter: Edward Carter > Assignee: Edward Carter > Fix For: 3.6.0, 4.0.0 > > Attachments: ZOOKEEPER-1963.patch > > > JDK 6 stopped receiving public updates in early 2013: > http://www.oracle.com/technetwork/java/eol-135779.html > I propose making JDK 7 the minimum for Zookeeper going forward. One patch > that I've personally submitted already would have been a good fit for Java > 7's try-with-resources statement, and another pending patch fails to build on > versions of Java prior to 7 because a unit test in it uses > InetAddress.getLoopbackAddress(), which would be awkward to replace. I'm > sure there are many other examples. -- This message was sent by Atlassian JIRA (v6.2#6252)