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 82E65200B9B for ; Thu, 1 Sep 2016 00:44:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7CE0A160AB4; Wed, 31 Aug 2016 22:44:23 +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 F1580160ABA for ; Thu, 1 Sep 2016 00:44:22 +0200 (CEST) Received: (qmail 98826 invoked by uid 500); 31 Aug 2016 22:44:22 -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 98563 invoked by uid 99); 31 Aug 2016 22:44:22 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2016 22:44:22 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id F094A2C1B79 for ; Wed, 31 Aug 2016 22:44:21 +0000 (UTC) Date: Wed, 31 Aug 2016 22:44:21 +0000 (UTC) From: "John Vines (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-4441) ConsoleReader created in Main breaks any external jars use of Console.readLine MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 31 Aug 2016 22:44:23 -0000 [ https://issues.apache.org/jira/browse/ACCUMULO-4441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15453616#comment-15453616 ] John Vines commented on ACCUMULO-4441: -------------------------------------- Not quite. It breaks if you execute bin/accumulo my.package.Class > ConsoleReader created in Main breaks any external jars use of Console.readLine > ------------------------------------------------------------------------------ > > Key: ACCUMULO-4441 > URL: https://issues.apache.org/jira/browse/ACCUMULO-4441 > Project: Accumulo > Issue Type: Bug > Affects Versions: 1.7.2 > Reporter: John Vines > > ACCUMULO-3514 introduced an autoloader for starting up our various functions as well as external utilities that are using our provided classpath. > Unfortunately with this work, the shell was more or less left alone. This means in teh Shell's empty constructor, which is now constructed no matter what, creates a ConsoleReader. And sadly, an unclosed ConsoleReader laying around breaks System.console().readLine by restricting it to reading just one character. > Ideally the Shell's empty constructor, like all of the other autowired services, should be empty and not creating an impact on the entire VM. -- This message was sent by Atlassian JIRA (v6.3.4#6332)