From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 78898 invoked by alias); 30 Aug 2019 00:04:56 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 78890 invoked by uid 89); 30 Aug 2019 00:04:56 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-4.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=Hope, reflection X-HELO: aibo.runbox.com Received: from aibo.runbox.com (HELO aibo.runbox.com) (91.220.196.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 30 Aug 2019 00:04:54 +0000 Received: from [10.9.9.202] (helo=mailfront20.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1i3UPK-0004x8-2d; Fri, 30 Aug 2019 02:04:50 +0200 Received: by mailfront20.runbox with esmtpsa [Authenticated alias (524175)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1i3UPE-0005gY-Ri; Fri, 30 Aug 2019 02:04:45 +0200 Subject: Re: Example of run-process with redirection to pipe? To: Sudarshan S Chawathe Cc: "kawa@sourceware.org" References: <20912.1566758722@localhost> From: Per Bothner Message-ID: Date: Wed, 18 Sep 2019 18:49:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20912.1566758722@localhost> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-q3/txt/msg00015.txt.bz2 I checked in a fix for this - the original test program now works. This was somewhat tricky because the actual runtime-class UNIXProcess is non-public, so reflection has to use the method from the parent class Process. Which lead to to messy complication relating to "syntheic bridge" methods. Hope I got it right ... A further improvement would be to do the method lookup at compile-time. -- --Per Bothner per@bothner.com http://per.bothner.com/