Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7BA34200C67 for ; Mon, 1 May 2017 01:08:35 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7A2A9160BA9; Sun, 30 Apr 2017 23:08:35 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 72D69160BA4 for ; Mon, 1 May 2017 01:08:34 +0200 (CEST) Received: (qmail 34292 invoked by uid 500); 30 Apr 2017 23:08:33 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 34280 invoked by uid 99); 30 Apr 2017 23:08:33 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Apr 2017 23:08:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D70561B1238 for ; Sun, 30 Apr 2017 23:08:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.397 X-Spam-Level: X-Spam-Status: No, score=-2.397 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 5B_Y1WNRhI1Q for ; Sun, 30 Apr 2017 23:08:31 +0000 (UTC) Received: from mail-io0-f196.google.com (mail-io0-f196.google.com [209.85.223.196]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id D36A95F642 for ; Sun, 30 Apr 2017 23:08:30 +0000 (UTC) Received: by mail-io0-f196.google.com with SMTP id k87so18871153ioi.0 for ; Sun, 30 Apr 2017 16:08:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=DfYmz1hV9Ae/9PBfHwkAeNQrTOXV4tDUZCZSCcoJ/jw=; b=nvwon+YpqI8f6ZXYERKy5IuuUJLn0gF9w49rx+pz1mjx/Mzc0DFsO5eS9c6XQjCUX2 CckyLD79WJycaNNzh4V3QXNxWgsQO+GNeuE8H1KBvEfrW+WrGJC8ev2mYl62m9xqKqfm cWOLofhiSQBV7+1whSyUA7zB6ZsdUea1a+aCQif3RDdTf1VA3LcRQ9enJcEPZ4O1Fuzw UkRF4MQBpqnjPfdiCWzDePpLiV5Ayg09et9bgiXOFUsUpRUwrcdfICDgcgw00Dn5IdHD q4ANzvd/ubziT4pah7g160N6MjSaS7acskFahL3w5D6E9C+og+7/k5gY844HzuCCq3C7 uyeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=DfYmz1hV9Ae/9PBfHwkAeNQrTOXV4tDUZCZSCcoJ/jw=; b=QSlHXNiEL+jYJTJBm8WBmYoWeO20RwEteKpnA2nD9anOYlTPE+6OqvoC5OCkZ3TUCs +KqUnndgTXNpofTmj99R0rZICyqk1/AnnjF4DpTkfiKU8tAUEtod9eBy9Bag0Id3n61a QcsDrMoz2HtdKPDYC1xBh+jXyPhC+YxcK6GhEJqvrzkcTGLviAk9fbNUg+AeoT7twF5I Av2Ny2tgeXrP7LLrj8mSve25SNeijitCFfW0r43StIKDxRfSNJdaJRygVhDcRdB7cePt MQi2mPZiew/QGnfkBWgncy0ApYdflHomDrYfAQoJAYATbGhT6yoIzNalTJ1e1JtUZGbH pwqg== X-Gm-Message-State: AN3rC/7KYYnWKkyKc8lzOAPfkjIDK6FnX1yKFqWLhr8mYfk40S0J0d+q OnCpDu8hJbvj1E3J3H+jl14kCotfF0vF X-Received: by 10.157.15.205 with SMTP id m13mr9460329otd.6.1493593704308; Sun, 30 Apr 2017 16:08:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.83.28 with HTTP; Sun, 30 Apr 2017 16:08:23 -0700 (PDT) In-Reply-To: References: <818538892b96c35755a3a8dea9e79791@scarlet.be> <7867d32be1055a3232cd02c8eec677a3@scarlet.be> <1483a2545c42f19ddad99af89711ee2b@scarlet.be> <720b81e56113cd047167f01df894b5a2@scarlet.be> From: Peter Ansell Date: Mon, 1 May 2017 09:08:23 +1000 Message-ID: Subject: Re: [Numbers] Java version? To: Commons Developers List Content-Type: text/plain; charset=UTF-8 archived-at: Sun, 30 Apr 2017 23:08:35 -0000 Jenkins now requires Java-8 as its base runtime environment on the regular release channel, with its LTS channel moving to Java-8 in a few weeks: https://jenkins.io/blog/2017/04/10/jenkins-has-upgraded-to-java-8/ That one bit me, as there is a bug updating on older Ubuntu versions that don't carry a Java-8 JDK in their standard repositories so you need to pull in the webupd8 PPA or the openjdk PPA: https://issues.jenkins-ci.org/browse/JENKINS-43629 The statistics that backed the Jenkins decision were interesting, but not necessarily relevant to other production applications: https://jenkins.io/blog/2017/01/17/Jenkins-is-upgrading-to-Java-8/ Cheers, Peter On 1 May 2017 at 02:22, Matt Sicker wrote: > Supporting Java 6 is going to continue to become harder and harder to do > with infrastructural upgrades across the board. Recent versions of Gradle > require Java 7 to run, for example, just like Jenkins, even though you can > still use those to compile for Java 6. Ant has finally moved on from the > Java 5 baseline, though IIRC, they jumped straight to Java 8. Considering > how long it was between Maven 3.3.9 and 3.5.0, I'm guessing the discussion > there about the baseline Java version is still ongoing. > > Really, what this is all pointing toward is that the greater Java developer > community is moving on from Java 6, and if we want to continue supporting > Java 6 in projects that otherwise shouldn't need anything newer, we may > need some better tooling or documented standards on how to continue doing > so. If Java 6 just never dies, then I almost think that we'll need to take > a leaf from the Javascript developer community and get some sort of > transpiler to support Java 6 using newer syntax and libraries (which could > be compile-time re-linked to compatibility libraries). > > On 30 April 2017 at 09:55, Gilles wrote: > >> On Sun, 30 Apr 2017 15:39:20 +0100, sebb wrote: >> >>> On 30 April 2017 at 15:32, Gilles wrote: >>> >>>> On Sun, 30 Apr 2017 14:49:56 +0100, sebb wrote: >>>> >>>>> >>>>> On 29 April 2017 at 19:10, Gilles wrote: >>>>> >>>>>> >>>>>> Hi. >>>>>> >>>>>> On Sat, 29 Apr 2017 09:46:56 -0400, Raymond DeCampo wrote: >>>>>> >>>>>>> >>>>>>> >>>>>>> Please note I wrote an issue concerning this last week or so. >>>>>>> >>>>>>> https://issues.apache.org/jira/browse/NUMBERS-21 >>>>>>> >>>>>>> I noticed when moving code from [math] to [numbers] that [math] >>>>>>> targets >>>>>>> 7. >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> As a general rule, this must formally asked on the "dev" ML. >>>>>> [And, we'll take for granted that if no one raises an objection >>>>>> within 72 hours, the proposal is accepted.] >>>>>> >>>>>> I had to make some minor downgrades in the code (use of diamond >>>>>>> operator). >>>>>>> >>>>>>> Given that [math] targets Java 7 and [numbers] is based on it, I see >>>>>>> no >>>>>>> reason [numbers] shouldn't target 7 as well. >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> That's fine with me; however let's note (for the record) that the >>>>>> last official release of CM (3.6.1) was still Java 5 (five) compatible. >>>>>> I don't think (TBC) that any of the CM codes intended (as of now) for >>>>>> inclusion _requires_ Java 7. >>>>>> >>>>>> Hence my question about the necessity (seems not) or willingness >>>>>> (could well be, if just for the comfort of contributors) to upgrade. >>>>>> >>>>>> Now, concretely, you could make the "downgrades" and the code is >>>>>> now Java 6 compatible. >>>>>> However, as concretely, it is not obvious that we want to loose >>>>>> more time fiddling with Jenkins to make it perform the build of >>>>>> code targeted to old Java. >>>>>> >>>>> >>>>> >>>>> IMO it is wrong for Jenkins to dictate the Java compat level of the >>>>> items it builds. >>>>> >>>> >>>> >>>> I agree. >>>> >>>> Besides, it is not difficult to do. >>>>> >>>> >>>> >>>> Then why doesn't INFRA do it when they perform an upgrade that >>>> breaks what used to work? >>>> >>> >>> Don't ask me, ask them... >>> >> >> I first asked here because I might have missed an announcement >> explaining how to upgrade the config. [I seem to recall having >> done what was required when the issue with Java 6 was first >> mentioned; then it broke again.] >> >> >>> Help welcome, since I must have missed the "easy" part in my >>>> attempts to fix it... >>>> >>> >>> Which job is failing? >>> >> >> I've just seen that you fixed it for "RNG". Thanks! >> I've reviewed the changes and did the same in "Numbers". >> Fixed now! >> >> Thanks, >> Gilles >> >> >> >>> Gilles >>>> >>>> >>>> >>>>> >>>>>> Regards, >>>>>> Gilles >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> >>>>>>> On Fri, Apr 28, 2017 at 6:30 PM, sebb wrote: >>>>>>> >>>>>>> On 28 April 2017 at 16:05, Matt Sicker wrote: >>>>>>>> > If you're going to build for Java 6 using Java 7, then you should >>>>>>>> > really >>>>>>>> > use something like < >>>>>>>> > http://www.mojohaus.org/animal-sniffer/animal-sniffer-maven- >>>>>>>> plugin/> >>>>>>>> > to >>>>>>>> > prevent accidental usage of Java 7. >>>>>>>> >>>>>>>> And/Or actually use Java 6 to compile/test, which is pretty easy to >>>>>>>> do >>>>>>>> using the -Pjava-1.6 profile. >>>>>>>> >>>>>>>> > On 28 April 2017 at 09:51, sebb wrote: >>>>>>>> > >>>>>>>> >> On 28 April 2017 at 13:01, Gilles >>>>>>>> >> wrote: >>>>>>>> >> > Hi. >>>>>>>> >> > >>>>>>>> >> > On Thu, 27 Apr 2017 08:42:36 -0700, Gary Gregory wrote: >>>>>>>> >> >> >>>>>>>> >> >> On Apr 27, 2017 8:21 AM, "Gilles" < >>>>>>>> gilles@harfang.homelinux.org> >>>>>>>> wrote: >>>>>>>> >> >> >>>>>>>> >> >> On Thu, 27 Apr 2017 10:10:57 -0500, Matt Sicker wrote: >>>>>>>> >> >> >>>>>>>> >> >>> Choosing Java 8 or 7 for a new component depends on the APIs >>>>>>>> you >>>>>>>> want >>>>>>>> >> to >>>>>>>> >> >>> use for it more so than what's current. >>>>>>>> >> >>> >>>>>>>> >> >> >>>>>>>> >> >> Indeed, the question could be rephrased as: Is there anything >>>>>>>> to >>>>>>>> loose >>>>>>>> >> >> (for a new component) if we allow the larger API of Java 8? >>>>>>>> >> >> >>>>>>>> >> >> >>>>>>>> >> >> I hear people are still using Java >>>>>>>> >> >>> >>>>>>>> >> >>> 6, but I doubt those projects are adapting new libraries or >>>>>>>> upgrading >>>>>>>> >> any >>>>>>>> >> >>> of their dependencies as it is... >>>>>>>> >> >>> >>>>>>>> >> >> >>>>>>>> >> >> That has seemed logical to me for a long time... >>>>>>>> >> >> >>>>>>>> >> >> >>>>>>>> >> >> +1 >>>>>>>> >> >> >>>>>>>> >> >> I say pick the version you think is best. >>>>>>>> >> > >>>>>>>> >> > >>>>>>>> >> > At this point, I can't say exactly. >>>>>>>> >> > The current code doesn't seem to need Java APIs beyond 6, but >>>>>>>> >> > other >>>>>>>> >> > utilities yet to be added might benefit. >>>>>>>> >> > The only argument for leaving Java 6 is that we have to go >>>>>>>> through >>>>>>>> >> > hoops with the Jenkins configuration. >>>>>>>> >> >>>>>>>> >> That is not an argument for upping the Java version >>>>>>>> >> >>>>>>>> >> > Currently it fails in a way that looks cryptic to me. >>>>>>>> >> >>>>>>>> >> That's because Jenkins now requires Java 7 to run Maven jobs, >>>>>>>> though >>>>>>>> >> it does not seem to need it for all job types. >>>>>>>> >> >>>>>>>> >> > So, unless someone can fix it, I'll bump the dependency to Java >>>>>>>> 7. >>>>>>>> >> >>>>>>>> >> Huh? >>>>>>>> >> Surely you can just tell Jenkins to use Java 7 to build and test? >>>>>>>> >> There's no need for the source to be updated as well (there might >>>>>>>> be >>>>>>>> >> some Javadoc warnings, I suppose, but those can be fixed without >>>>>>>> >> compromising Java 6 compat.) >>>>>>>> >> >>>>>>>> >> But it's pretty easy to fix so it builds and tests using Java 6 - >>>>>>>> >> which job is it? >>>>>>>> >> >>>>>>>> >> > Regards, >>>>>>>> >> > Gilles >>>>>>>> >> > >>>>>>>> >> > >>>>>>>> >> > >>>>>>>> >> >> >>>>>>>> >> >> Gary >>>>>>>> >> >> >>>>>>>> >> >> >>>>>>>> >> >> Regards, >>>>>>>> >> >> Gilles >>>>>>>> >> >> >>>>>>>> >> >> >>>>>>>> >> >> On 27 April 2017 at 09:41, Gilles < >>>>>>>> gilles@harfang.homelinux.org> >>>>>>>> wrote: >>>>>>>> >> >>> >>>>>>>> >> >>> >>>>>>>> >> >>> On Thu, 27 Apr 2017 14:49:01 +0200, Gilles wrote: >>>>>>>> >> >>>> >>>>>>>> >> >>>> >>>>>>>> >> >>>> Hi. >>>>>>>> >> >>>>> >>>>>>>> >> >>>>> >>>>>>>> >> >>>>> The POM indicates: >>>>>>>> >> >>>>> >>>>>>>> >> >>>>> 1.6 >>>>>>>> >> >>>>> 1.6 >>>>>>>> >> >>>>> >>>>>>>> >> >>>>> but also: >>>>>>>> >> >>>>> >>>>>>>> >> >>>>> (requires Java >>>>>>>> 7+) >>>>>>>> >> >>>>> >>>>>>>> >> >>>>> Which is wrong? >>>>>>>> >> >>>>> >>>>>>>> >> >>>>> >>>>>>>> >> >>>>> Also, please not that keeping 1.6 compatibility seems to >>>>>>>> complicate >>>>>>>> >> >>>> >>>>>>>> >> >>>> the Jenkins configuration: >>>>>>>> >> >>>> https://builds.apache.org/vie >>>>>>>> w/Apache%20Commons/job/Commons_ >>>>>>>> >> >>>> Numbers/14/console >>>>>>>> >> >>>> >>>>>>>> >> >>>> For a new component, shouldn't we just go to Java 8? >>>>>>>> >> >>>> >>>>>>>> >> >>>> >>>>>>>> >> >>>> Gilles >>>>>>>> >> >>>> >>>>>>>> >> > >>>>>>>> >> > >>>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >> For additional commands, e-mail: dev-help@commons.apache.org >> >> > > > -- > Matt Sicker --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org