Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A503FD319 for ; Tue, 26 Feb 2013 21:43:23 +0000 (UTC) Received: (qmail 76861 invoked by uid 500); 26 Feb 2013 21:43:23 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 76823 invoked by uid 500); 26 Feb 2013 21:43:23 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 76813 invoked by uid 99); 26 Feb 2013 21:43:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 21:43:23 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jburwell@basho.com designates 209.85.128.44 as permitted sender) Received: from [209.85.128.44] (HELO mail-qe0-f44.google.com) (209.85.128.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 21:43:18 +0000 Received: by mail-qe0-f44.google.com with SMTP id x7so1925704qeu.17 for ; Tue, 26 Feb 2013 13:42:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=k79lcO6tCQs+Y4qiNaTv9LTBUyMW0VhQVrourcNgK2E=; b=j80bLCxhWApwpLo97pj+eq1qPdbH6WH7ODBitJpPLIUPIlyJSAZzIa5JG7ieN5DD6H ndjH7hQtf8sEFEXAK+dgNdRFNvUpnGRCf4lqS1uQEQrUqt9lFZCbXKz9AEgkJG5qYsYZ 4A/g5JXTgVh0+/FtInU2p+z1wfQ6TclxTiSrVE5ANKNht1j6CdiiWC0xtoGvg1kig1qZ 87AIrD4Pv96d4oBSTWCkexBPnucMIYBtqG8J3HPWbhORBtZRip+tljZEd9+nks8awJQP aa5nqZwS7s3rcdzmHpM3W3PpXn8YJN8zEMZAMCVKm/r4+8HqHTh5tEaeEYTn4JFS1/uJ Wa0g== X-Received: by 10.49.3.234 with SMTP id f10mr23092109qef.52.1361914977854; Tue, 26 Feb 2013 13:42:57 -0800 (PST) Received: from [10.0.8.31] (wsip-68-225-89-79.dc.dc.cox.net. [68.225.89.79]) by mx.google.com with ESMTPS id bw14sm4080630qab.11.2013.02.26.13.42.55 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Feb 2013 13:42:56 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: [DISCUSS] Supported Java version From: John Burwell In-Reply-To: Date: Tue, 26 Feb 2013 16:42:55 -0500 Cc: Noa Resare , Frank Zhang Content-Transfer-Encoding: quoted-printable Message-Id: <58916DAC-488B-4AB6-87A1-799C06C4F9A5@basho.com> References: <512B49BB.8040404@widodh.nl> <20130225150001.GC81779@USLT-205755.sungardas.corp> <21455F1B-E0F9-44BC-8B9A-6FD3839D51F1@basho.com> To: cloudstack-dev@incubator.apache.org X-Mailer: Apple Mail (2.1499) X-Gm-Message-State: ALoCoQngkX/6IZ/fc2rSt1GEatwn7MWDzMkzmAZnvRJnTcBhTtcOM6Xz6DRH3OS6U1JyTv5LLYij X-Virus-Checked: Checked by ClamAV on apache.org Alex, I think we are in violent agreement. I am only advocating for a build = tested on JRE7, and listed as officially supported in our docs. Using = the Java7 features is a completely different discussion. Thanks, -John On Feb 26, 2013, at 3:52 PM, Alex Huang wrote: > +1 That's exactly what I said in my reply as well. Support for Java7 = means we test with JRE7 in 4.1 but support for Java7 does not mean we = should push for deprecating JRE6 support. >=20 > --Alex >=20 > From: Noa Resare [mailto:noa@spotify.com] > Sent: Tuesday, February 26, 2013 12:35 PM > To: cloudstack-dev@incubator.apache.org > Cc: Frank Zhang; Alex Huang > Subject: Re: [DISCUSS] Supported Java version >=20 > java 6 may be end-of-line'd by Oracle, but the OpenJDK is shipping as = part of the enterprise distributions and as such will be supported in = i.e. Debian Wheezy for at least years into the future. >=20 > I'm not talking about not supporting java 7, the java ecosystem has = traditionally been very good at supporting code targeting = current_version - 1, but I propose we avoid using language features and = quirks that break java 6 compatibility. >=20 > /n >=20 > On Mon, Feb 25, 2013 at 5:04 PM, John Burwell = > wrote: > Noa, >=20 > I think of one very good reason -- as of this month, Java6 has been = EOL'ed [1] by Oracle (i.e. no more updates). Given the number of = security issues that have cropped in Java lately, it seems prudent, in = my mind, to ensure that the next release runs on an officially supported = JRE. Also, OpenJDK 7 is widely available for modern distributions (see = openjdk-7 packages in Ubuntu 12.04 and java-1.7.0-openjdk in RHEL/CentOS = 6.3). >=20 > Thanks, > -John >=20 > [1]: http://www.oracle.com/technetwork/java/eol-135779.html > On Feb 25, 2013, at 10:24 AM, Noa Resare = > wrote: >=20 >> Unless someone comes with a very good argument to drop java 6 = compatibility >> (and make a good case for it in in public and gather consensus) I = would >> consider this a bug that needs to be fixed. >>=20 >> /noa >>=20 >>=20 >> On Mon, Feb 25, 2013 at 4:00 PM, Chip Childers = >wrote: >>=20 >>> I didn't think that we agreed to bumping the java version to 7, and = it >>> seems like that might make working with distros / packages = difficult. >>>=20 >>> Adding Alex and Frank to the CC to get their take. >>>=20 >>> On Mon, Feb 25, 2013 at 12:23:39PM +0100, Wido den Hollander wrote: >>>> Hi, >>>>=20 >>>> So the last couple of days the master branch wouldn't build on my >>> systems: >>>>=20 >>>> [INFO] Apache CloudStack Framework - IPC ................. FAILURE >>> [1.874s] >>>> ... >>>> ... >>>> [INFO] >>> = ------------------------------------------------------------------------ >>>> [ERROR] Failed to execute goal >>>> org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile >>>> (default-compile) on project cloud-framework-ipc: Compilation >>>> failure: Compilation failure: >>>> [ERROR] >>> = /home/employee/wido/repos/cloudstack/framework/ipc/src/org/apache/cloudsta= ck/framework/rpc/RpcServerCallImpl.java:[51,58] >>>> type parameters of T cannot be determined; no unique maximal >>>> instance exists for type variable T with upper bounds >>>> T,java.lang.Object >>>> [ERROR] >>> = /home/employee/wido/repos/cloudstack/framework/ipc/src/org/apache/cloudsta= ck/framework/rpc/RpcClientCallImpl.java:[191,60] >>>> type parameters of T cannot be determined; no unique maximal >>>> instance exists for type variable T with upper bounds >>>> T,java.lang.Object >>>>=20 >>>> So I'm running Ubuntu 12.04.1 on all my systems (laptop, desktop, >>>> servers) and this is the maven information: >>>>=20 >>>> wido@wido-desktop:~$ mvn -v >>>> Apache Maven 3.0.4 >>>> Maven home: /usr/share/maven >>>> Java version: 1.6.0_27, vendor: Sun Microsystems Inc. >>>> Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre >>>> Default locale: en_US, platform encoding: UTF-8 >>>> OS name: "linux", version: "3.2.0-38-generic", arch: "amd64", = family: >>> "unix" >>>> wido@wido-desktop:~$ >>>>=20 >>>> Now, that Java version is old, I know, but it's the openjdk version >>>> which is in Ubuntu 12.04's repositories right now. >>>>=20 >>>> I downloaded Java 7: >>>>=20 >>>> wido@wido-desktop:~/repos/cloudstack$ JAVA_HOME=3D"/opt/jdk1.7.0_15" = mvn >>> -v >>>> Apache Maven 3.0.4 >>>> Maven home: /usr/share/maven >>>> Java version: 1.7.0_15, vendor: Oracle Corporation >>>> Java home: /opt/jdk1.7.0_15/jre >>>> Default locale: en_US, platform encoding: UTF-8 >>>> OS name: "linux", version: "3.2.0-38-generic", arch: "amd64", = family: >>> "unix" >>>> wido@wido-desktop:~/repos/cloudstack$ >>>>=20 >>>> With that Java version the master branch builds just fine. >>>>=20 >>>>=20 >>>> What I want to discuss which version of Java we support. >>>>=20 >>>> I'd say we support the LTS version of any major release of CentOS = or >>> Ubuntu. >>>>=20 >>>> I also understand that Java 6 is pretty old, so what do we do? >>>>=20 >>>> Wido >>>>=20 >>>=20 >>=20 >>=20 >>=20 >> -- >> Engineering Experience, Infrastructure tribe, Spotify >=20 >=20 >=20 > -- > Engineering Experience, Infrastructure tribe, Spotify >=20