From dev-return-90524-archive-asf-public=cust-asf.ponee.io@ant.apache.org Tue Feb 6 16:58:35 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 7167D180657 for ; Tue, 6 Feb 2018 16:58:35 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 61484160C3A; Tue, 6 Feb 2018 15:58:35 +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 CEFA0160C34 for ; Tue, 6 Feb 2018 16:58:34 +0100 (CET) Received: (qmail 43177 invoked by uid 500); 6 Feb 2018 15:58:33 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 43159 invoked by uid 99); 6 Feb 2018 15:58:33 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Feb 2018 15:58:33 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2C195E9640; Tue, 6 Feb 2018 15:58:33 +0000 (UTC) From: apupier To: dev@ant.apache.org Reply-To: dev@ant.apache.org References: In-Reply-To: Subject: [GitHub] ant-ivy pull request #62: IVY-1572 - Check for Thread interruption while res... Content-Type: text/plain Message-Id: <20180206155833.2C195E9640@git1-us-west.apache.org> Date: Tue, 6 Feb 2018 15:58:33 +0000 (UTC) Github user apupier commented on a diff in the pull request: https://github.com/apache/ant-ivy/pull/62#discussion_r166349423 --- Diff: src/java/org/apache/ivy/plugins/resolver/AbstractPatternsBasedResolver.java --- @@ -91,6 +91,9 @@ protected ResolvedResource findResourceUsingPatterns(ModuleRevisionId moduleRevi Set foundRevisions = new HashSet<>(); boolean dynamic = getSettings().getVersionMatcher().isDynamic(moduleRevision); for (String pattern : patternList) { + if (Thread.currentThread().isInterrupted()) { + return null; --- End diff -- the specific exception in this case is in theory https://docs.oracle.com/javase/7/docs/api/java/lang/InterruptedException.html which is a checked Exception. Do you have another runtime exception in mind? Or you want to create a specific Runtime Exception? I'm wondering what would be the effect in this case to Thread in which it has been launched. Will it finished also? --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org