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 739FC1913B for ; Tue, 26 Apr 2016 11:47:05 +0000 (UTC) Received: (qmail 42623 invoked by uid 500); 26 Apr 2016 11:47:04 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 42491 invoked by uid 500); 26 Apr 2016 11:47:04 -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 42478 invoked by uid 99); 26 Apr 2016 11:47:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Apr 2016 11:47:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id EA417C0715 for ; Tue, 26 Apr 2016 11:47:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_BL_SPAMCOP_NET=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id qTjsTPDNxQA0 for ; Tue, 26 Apr 2016 11:47:03 +0000 (UTC) Received: from mail-yw0-f194.google.com (mail-yw0-f194.google.com [209.85.161.194]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id F17DD5F3A0 for ; Tue, 26 Apr 2016 11:47:02 +0000 (UTC) Received: by mail-yw0-f194.google.com with SMTP id u62so1493392ywe.3 for ; Tue, 26 Apr 2016 04:47:02 -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-transfer-encoding; bh=x4gxPAbzPZ9f+qVAXJaxmQx9xoZNHHwQ2RQue67sraY=; b=UO3jFVT6qm/+Hg8kj/PkcdjJjTCjuholItLe3ag3ZIJJbG2tb/Z+HG+wJRYWIb8P3D 7y/HVDufWePVir44/FkmE5T614A4i1DC7vGmb64We66+aQXy5UHj36+6RhjGYk3jwgvs 7fV+Im/Q4/ceZHu9mxt8B0Ie/qm6+a1bNWuAYm1ydNBSqlXolsQ4Xnds+NV874A3N9TI FjErnuTqrOLAbTSEMY24F72WJLuI9pAz6gCZUyCWdZwwUUzjSzzt2g+OvH4BTjC9emAX NZMYabFn4w+B1ib+/buRQ2kPPQwtJ+XvIfYddRIbtUOal6C3blmeiuOp0LRnNEcOwVxm WlQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-transfer-encoding; bh=x4gxPAbzPZ9f+qVAXJaxmQx9xoZNHHwQ2RQue67sraY=; b=hXQ5O0CVzls9703BqFI2XgU+yCo1i+W9AXayBu1hP81XXh0Fs026uuTjUWjteoptk+ GCBONup1OUM8rTyIBaEIyYieQjvAnfJ8TFsA4mgdUKuIalHZdE40sIQbTzYN6KWke4qq eS0b2wDkAbWyNtpyuZxIrkAIep2VMmx5CCkigV2rSJg1ykUd35AD+GtQ0wjv3vDNvcq0 dtQJuBXKeK0YNEtp5orm20B4EDddcish0c6ikeyHHWlB5xrjUAPYQHE1Pj/Efw9OUlDM D6r5iYdalfocU+HCzfXDzhXkNQG7GIbSjQeozTI8+Z9sV4LUra0KX0jhz8hn7aTRsicZ exPw== X-Gm-Message-State: AOPr4FWvzUdBx3W3/wvdklEjETlLbLPKjrgSGGYbD6C8mI9bPGW3HB8p9AugcUtEap13EH9IQUD+HO5QW+lFvQ== MIME-Version: 1.0 X-Received: by 10.13.252.197 with SMTP id m188mr986535ywf.281.1461671222440; Tue, 26 Apr 2016 04:47:02 -0700 (PDT) Received: by 10.13.210.66 with HTTP; Tue, 26 Apr 2016 04:47:02 -0700 (PDT) In-Reply-To: <571F517F.40008@apache.org> References: <571F243D.9030007@apache.org> <571F41A2.5040209@apache.org> <571F517F.40008@apache.org> Date: Tue, 26 Apr 2016 12:47:02 +0100 Message-ID: Subject: Re: [io] Make requirement Java 7? From: sebb To: Commons Developers List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 26 April 2016 at 12:31, Emmanuel Bourg wrote: > Le 26/04/2016 13:18, sebb a =C3=A9crit : > >> But how does one compile the new utils which require Java 7? >> >> Would these be released as separately compiled jar? > > You don't need a separate jar. You just have to build with Java 7 but > set the source/target of the compiler plugin to 1.6. This will produce a > jar usable with Java 6, except for the new utils classes using the Java > 7 APIs. Doh, of course. However that might need a fix to the pom. IIRC there is a check that the code only uses APIs from the target Java version, precisely to guard against accidental use of non-existent APIs. Since the ASF primarily releases source, I think we would need to ensure that the code could still be compiled using Java 6. That would mean excluding the new classes if the compiler is Java 6. And not using Java 7 syntax in the original code. Otherwise we would be producing source code that is (mainly) Java 6-compatible but which cannot be compiled using Java 6. > Emmanuel Bourg > > > --------------------------------------------------------------------- > 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