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 427D617365 for ; Thu, 7 May 2015 10:29:24 +0000 (UTC) Received: (qmail 80492 invoked by uid 500); 7 May 2015 10:29:23 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 80352 invoked by uid 500); 7 May 2015 10:29:23 -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 80340 invoked by uid 99); 7 May 2015 10:29:23 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2015 10:29:23 +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 307AC1A2318 for ; Thu, 7 May 2015 10:29:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.9 X-Spam-Level: *** X-Spam-Status: No, score=3.9 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=3] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Qlsqof0FCglU for ; Thu, 7 May 2015 10:29:07 +0000 (UTC) Received: from mail-ig0-f177.google.com (mail-ig0-f177.google.com [209.85.213.177]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id B0BD120A00 for ; Thu, 7 May 2015 10:29:06 +0000 (UTC) Received: by igbyr2 with SMTP id yr2so155353353igb.0 for ; Thu, 07 May 2015 03:29:05 -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=BTmm/Muh7tVDoklpn9eUgQ6nZxvk0HrAScc0oJHcjL0=; b=hJSObbiX640OpQ9AEGR1yv0FiYtY0gGunJoQwCILWNLflASGSggygKMDRPsWGlE0lI i/BekkI+1Ps7vdIVRBPdcteerYd0qdMijp8/CJeYWZwWRashDz7fcozX+7TOp9sOWt/B OyXX7m1Rtn0j1DNs+8mJOunPCBfEcbySvOu0ybI8us1ciMTbpmPjn0yyR9Ig5NMcNWtz g9kFgPd7RaFNndOCUcnywwPz9wuTVS6DyQJacTYB9Ob8j9aJogHWcnbEeTvzzNtpaWuN +rMpdRWT0EhAFNCUKPvArEpPdci+uIBG+DJWv5T87OTQE5Du5+eNvsSjBifIZZMgu68c xpAQ== MIME-Version: 1.0 X-Received: by 10.107.15.82 with SMTP id x79mr3773945ioi.75.1430994545528; Thu, 07 May 2015 03:29:05 -0700 (PDT) Received: by 10.107.137.160 with HTTP; Thu, 7 May 2015 03:29:05 -0700 (PDT) In-Reply-To: References: Date: Thu, 7 May 2015 12:29:05 +0200 Message-ID: Subject: Re: [VOTE] Release Apache Commons CLI 1.3 based on RC1 From: Thomas Neidhart To: Commons Developers List Content-Type: multipart/alternative; boundary=001a113e9d988ff6ed05157b61fb --001a113e9d988ff6ed05157b61fb Content-Type: text/plain; charset=UTF-8 This whole issue was already discussed something like 2 years ago. There is no way to clean this up in the 1.x branch, changing the return type to List is probably the best you can do. For now, I would just fix known bugs and move on to cli2 with a clean codebase. Thomas On Thu, May 7, 2015 at 10:45 AM, Benedikt Ritter wrote: > 2015-05-03 19:21 GMT+02:00 Gary Gregory : > > > The new class DefaultParser does not use generics to define the options > > List, that is suspicious. Looking closer, the list can hold a mix of > > OptionGroup and String instances. Really? Looking at Options I see the > list > > defined as List. This avoids compiler warnings but is nasty. This > > is probably what we have inherited from this very old code base. We > should > > at least perpetuate this to DefaultParser's List as a List. > > > The expectedOpts field is protected so subclasses my use it. It's not > accessible through getters, so the methods defined on DefaultParser don't > pass raw lists to the outside world. I think adding could be added > in 1.3.1, although I agree that it would be better to resolve this and > maybe split up the two lists. If DefaultParser wouldn't define all fields > as protected, we could change this later. But as it is now, it looks like > we have to fix this. > > Benedikt > > > > I switched a couple of years ago to using annotation based CLI processing > > with JCommander. I'd like to come back to Commons for CLI, but not I do > not > > see that happening until a very different CLI2 emerges. > > > > This is not the thread for discussing a CLI2 of course... ;-) > > > > Gary > > > > On Sun, May 3, 2015 at 8:18 AM, Benedikt Ritter > > wrote: > > > > > Hi, > > > > > > We have fixed quite a few bugs and added some significant enhancements > > > since CLI 1.2 was released and the Groovy Project is asking for a new > > > release, so I would like to release CLI 1.3. The most notable change is > > the > > > introduction of a new API for creating Option instances. > > > > > > CLI 1.3 RC1 is available for review here: > > > https://dist.apache.org/repos/dist/dev/commons/cli/ (svn revision > > 8797) > > > > > > Maven artifacts are here: > > > > > > > > > https://repository.apache.org/content/repositories/orgapachecommons-1090/ > > > > > > Details of changes since 1.2 are in the release notes: > > > https://dist.apache.org/repos/dist/dev/commons/cli/RELEASE-NOTES.txt > > > http://people.apache.org/~britter/cli-1.3-RC1/changes-report.html > > > > > > I have tested this with JDK 6, 7 and 8 using maven 3. > > > > > > The tag is here: > > > http://svn.apache.org/repos/asf/commons/proper/cli/tags/cli-1.3-RC1/ > > > (svn > > > revision 1677410) > > > > > > Site: > > > http://people.apache.org/~britter/cli-1.3-RC1/ > > > (note some *relative* links are broken and the 1.2 directories are > not > > > yet created - these will be OK once the site is deployed) > > > > > > Clirr Report (compared to 1.2): > > > http://people.apache.org/~britter/cli-1.3-RC1/clirr-report.html > > > > > > RAT Report: > > > http://people.apache.org/~britter/cli-1.3-RC1/rat-report.html > > > > > > KEYS: > > > https://www.apache.org/dist/commons/KEYS > > > > > > Please review the release candidate and vote. This vote will close no > > > sooner that 72 hours from now, i.e. after 06-May 2015, 17:30 CEST. > > > > > > [ ] +1 Release these artifacts > > > [ ] +0 OK, but... > > > [ ] -0 OK, but really should fix... > > > [ ] -1 I oppose this release because... > > > > > > Thanks! > > > Benedikt > > > > > > > > > -- > > > http://people.apache.org/~britter/ > > > http://www.systemoutprintln.de/ > > > http://twitter.com/BenediktRitter > > > http://github.com/britter > > > > > > > > > > > -- > > E-Mail: garydgregory@gmail.com | ggregory@apache.org > > Java Persistence with Hibernate, Second Edition > > > > JUnit in Action, Second Edition > > Spring Batch in Action > > Blog: http://garygregory.wordpress.com > > Home: http://garygregory.com/ > > Tweet! http://twitter.com/GaryGregory > > > > > > -- > http://people.apache.org/~britter/ > http://www.systemoutprintln.de/ > http://twitter.com/BenediktRitter > http://github.com/britter > --001a113e9d988ff6ed05157b61fb--