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 C1333200C7D for ; Tue, 2 May 2017 02:25:56 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BFC8E160BC2; Tue, 2 May 2017 00:25:56 +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 1215D160BC1 for ; Tue, 2 May 2017 02:25:55 +0200 (CEST) Received: (qmail 13323 invoked by uid 500); 2 May 2017 00:25:55 -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 13312 invoked by uid 99); 2 May 2017 00:25:55 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 May 2017 00:25:55 +0000 Received: from mail-ua0-f178.google.com (mail-ua0-f178.google.com [209.85.217.178]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id CC4591A038E for ; Tue, 2 May 2017 00:25:54 +0000 (UTC) Received: by mail-ua0-f178.google.com with SMTP id g49so13761609uaa.1 for ; Mon, 01 May 2017 17:25:54 -0700 (PDT) X-Gm-Message-State: AN3rC/7vlk2xprBOmIM2vgigxPphYRqByq9s1438wUuyA+9kE7SQbkwP 3NPmM7eO7ogBeQEKbw87b+jFGmK96w== X-Received: by 10.176.81.195 with SMTP id h3mr4485593uaa.19.1493684753954; Mon, 01 May 2017 17:25:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.74.87 with HTTP; Mon, 1 May 2017 17:25:53 -0700 (PDT) X-Originating-IP: [84.92.48.26] Received: by 10.176.74.87 with HTTP; Mon, 1 May 2017 17:25:53 -0700 (PDT) In-Reply-To: References: <1E2CC5CB-8560-434F-BAF1-40285C580675@gmail.com> From: Stian Soiland-Reyes Date: Tue, 2 May 2017 01:25:53 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [lang] To: Commons Developers List Content-Type: multipart/alternative; boundary=94eb2c190e042ad7e4054e7f95b3 archived-at: Tue, 02 May 2017 00:25:56 -0000 --94eb2c190e042ad7e4054e7f95b3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Adding a class with a plan to @deprecate it, something doesn't sound right. :) We should not be putting much effort (and future maintainability) into adding functionality in Lang that jdk8 already (easily) can do. The point of Lang is to complement JDK's Lang classes and friends, not to backport what the current JDK has already added. (Obviously existing Lang functionality is or will be superseded by new JDK additions, that just shows that the philosophy of Lang is right.) If you are stuck in jdk7 you are often also stuck with older Commons Lang. (Oversimplification, yes) We have java7 as target (I'm positive to bump it to 8) - but primarily for backwards compatibility as Lang is ubiquitous and it makes sense to stay one behind. But we don't need to add *new* backwards compatibility :) We could make excemptions and do backports, but then I think that should be for more core JDK8 improvements like Optional. That said, your implementation is straightforward=E2=80=8B, useful, and unl= ikely to cause trouble; I would not veto your commit if it goes forward ;) On 1 May 2017 9:40 pm, "Gary Gregory" wrote: In my mind, we target a given platform, in this case its Java 7. So the proposal is valid IMO. Then when switch to Java 8, we can mark the class as deprecated and remove it in 4.0. I'm not hard set on including this specific class, it's just something I use. --94eb2c190e042ad7e4054e7f95b3--