Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D67FF11944 for ; Fri, 20 Jun 2014 15:42:09 +0000 (UTC) Received: (qmail 88506 invoked by uid 500); 20 Jun 2014 15:42:09 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 88387 invoked by uid 500); 20 Jun 2014 15:42:09 -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 88375 invoked by uid 99); 20 Jun 2014 15:42:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jun 2014 15:42:08 +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 (nike.apache.org: domain of venkateshamurthyts@gmail.com designates 209.85.216.43 as permitted sender) Received: from [209.85.216.43] (HELO mail-qa0-f43.google.com) (209.85.216.43) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jun 2014 15:42:07 +0000 Received: by mail-qa0-f43.google.com with SMTP id k15so3330614qaq.16 for ; Fri, 20 Jun 2014 08:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=jadz5a5E8BldcncW+zPnxKSbq/SRlpeWiY1y99cA+6M=; b=I9za2/uuMutXQG9bWQumdcjaOFL3pmqdUQSpnlpM/0LjTmId4sk9tMEtFeBrW76aVU YhOLISHD96VVVgqdNrWFqEMmcA8+ATt5naFjolZ/Gdwxynz/CwFAHcK6fIXRX6XgQfVu 3MT06dl7rSAy61wrAI3JoxGLTjr76y3qwZXwKrQ16uG0PRqIuTb5BRCWVs2GoEvqq4CJ 1JHnGUrWLclu3GJFFHMlse+Sp6yZe54FkmL5Q5Z5cwbd3WmWvAXndgShjXiON3ZXw25a VXdZlIIEOUO4To0lu+UG+LTwj7jnqxhMbNtI7xQU6l1PLL46aYiWEMYF3w2RWstSBvew usdQ== MIME-Version: 1.0 X-Received: by 10.140.89.18 with SMTP id u18mr5813803qgd.90.1403278902734; Fri, 20 Jun 2014 08:41:42 -0700 (PDT) Received: by 10.140.37.73 with HTTP; Fri, 20 Jun 2014 08:41:42 -0700 (PDT) In-Reply-To: References: <20140620133743.3000123889E1@eris.apache.org> Date: Fri, 20 Jun 2014 21:11:42 +0530 Message-ID: Subject: Re: [Math] Supported Java versions From: venkatesha murthy To: Commons Developers List Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Jun 20, 2014 at 9:00 PM, Gilles wrote: > On Fri, 20 Jun 2014 16:57:41 +0200, Thomas Neidhart wrote: >> >> On 20 Jun 2014 16:37, "Gilles" wrote: >>> >>> >>> On Fri, 20 Jun 2014 16:18:08 +0200, Thomas Neidhart wrote: >>>> >>>> >>>> Java 5 is already eol. Anybody still using it is certainly in >>>> maintenance >>>> mode thus adding now a feature that is available in java 6 does not make >>>> any sense. >>> >>> >>> >>> This a strong statement in a forum where it has _always_ been >>> indicated that no post-Java-5 feature could be used. >> >> >> These two are completely different things. >> >> Not using more recent java features was done in order to still support >> users that are stuck with java 5 but want/have to use commons. >> >> Duplicating java 6 features in 2014 is pointless. What is the expected >> userbase of this feature? > > > Commons Math itself. And this was the real purpose of duplicating Java 6: > no user ever asked for those methods in MathArrays. They were implemented > for the sole reason that CM could not contain calls to methods not yet > available in Java 5. [See the "pom.xml" of Commons Math.] > >> New users will certainly have adopted more recent >> versions of java and anybody still using java 5 and having a need for this >> will hopefully have implemented it already in his own codebase. > > > This is completely unrelated to the issue. > >>> >>> The right question, to be asked again (in case the answer will be >>> different from all the other times) is: Is Commons Math still to >>> support Java 5 ? >>> >>> If not, to which version do we switch to? 6, 7, 8? I think JDK 7 may be the way to go ; since per http://www.oracle.com/technetwork/java/eol-135779.html ; even JDK 6 has stopped public updates since last year. >> >> >> Thats another question to be asked, but orthogonal to the above. > > > No. The question is really: In Commons Math, can we call JDK's features > that are post-Java-5? > The answer has up to now been "No". > > If it becomes "yes", there are several CM methods that can be deprecated, > and whose implementation can be right-away delegated to their JDK equivalent > (in particular the "copyOf" family in "MathArrays"). > > If it is still "No", for the reason you gave yourself above (users stuck > with > Java 5), then how is "copyOfRange" any different from all the other methods > with a similar purpose (which is: prepare for switching to higher Java > version)? > > > Gilles > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org