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 CBFC3200C32 for ; Thu, 9 Mar 2017 20:36:44 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CA989160B5F; Thu, 9 Mar 2017 19:36:44 +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 1F6F8160B75 for ; Thu, 9 Mar 2017 20:36:43 +0100 (CET) Received: (qmail 46720 invoked by uid 500); 9 Mar 2017 19:36:43 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 46709 invoked by uid 99); 9 Mar 2017 19:36:43 -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; Thu, 09 Mar 2017 19:36:43 +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 D19C4C132E for ; Thu, 9 Mar 2017 19:36:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.651 X-Spam-Level: X-Spam-Status: No, score=0.651 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-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 WCZDtgXRUSlJ for ; Thu, 9 Mar 2017 19:36:42 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 14F4961EF3 for ; Thu, 9 Mar 2017 19:36:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 2963EE0B21 for ; Thu, 9 Mar 2017 19:36:40 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6D264243D2 for ; Thu, 9 Mar 2017 19:36:38 +0000 (UTC) Date: Thu, 9 Mar 2017 19:36:38 +0000 (UTC) From: "Christopher Tubbs (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (ACCUMULO-4605) Main.java shouldn't have hard-coded lists of commands for usage MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 09 Mar 2017 19:36:45 -0000 Christopher Tubbs created ACCUMULO-4605: ------------------------------------------- Summary: Main.java shouldn't have hard-coded lists of commands for usage Key: ACCUMULO-4605 URL: https://issues.apache.org/jira/browse/ACCUMULO-4605 Project: Accumulo Issue Type: Bug Reporter: Christopher Tubbs Fix For: 2.0.0 ACCUMULO-4490 added hard-coded lists of commands in the Main class, for the purposes of usage. However, this regresses what ACCUMULO-3514 was trying to fix. In addition, the current implementation results in NullPointerExceptions when one of the hard-coded keywords are not found in the classloader. Main should be fixed so that it does not depend on hard-coded lists of KeywordExecutables. [~mikewalch] mentioned to me that part of the reason this was done was to affix the ordering of the usage. I think that goal can be achieved by extending the KeywordExecutable interface to include a grouping or ordering attribute instead. -- This message was sent by Atlassian JIRA (v6.3.15#6346)