Return-Path: X-Original-To: apmail-groovy-dev-archive@minotaur.apache.org Delivered-To: apmail-groovy-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5F39018CFF for ; Sun, 19 Jul 2015 08:48:43 +0000 (UTC) Received: (qmail 57318 invoked by uid 500); 19 Jul 2015 08:48:43 -0000 Delivered-To: apmail-groovy-dev-archive@groovy.apache.org Received: (qmail 57274 invoked by uid 500); 19 Jul 2015 08:48:43 -0000 Mailing-List: contact dev-help@groovy.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.incubator.apache.org Delivered-To: mailing list dev@groovy.incubator.apache.org Received: (qmail 57264 invoked by uid 99); 19 Jul 2015 08:48:43 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Jul 2015 08:48: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 96B8DC0925 for ; Sun, 19 Jul 2015 08:48:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.12 X-Spam-Level: X-Spam-Status: No, score=-0.12 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=nezwerg.de Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 9__fZtScYuVg for ; Sun, 19 Jul 2015 08:48:41 +0000 (UTC) Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [81.169.146.216]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 41CA243DF4 for ; Sun, 19 Jul 2015 08:48:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1437295714; l=247; s=domk; d=nezwerg.de; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version: Date:From:References:To:Subject; bh=ZMpNodbPr3LFeyE9CtrmnxxUPhElfTMGbZaIve6hk5M=; b=KqUNHisDSD+eGDUAiK3Mi6ZdOY46Q8RNpENYbJAbp6HiyECiZGA16/kLPV3LYHtUjvr XmeCqJkV0GMO5Wo9Dy8wJatri6XCF0YC5XvrJLlDY3XNMDJ3Y/zIAh6RiAH3WxTZYjsT7 eAQbuo0JZWd+Yw4Z4Eivl+E0qDFqIOE16+8= X-RZG-AUTH: :K34LelaxW/EihIr+6vSjd72rFJAnHmEvJYjakqAd6Ao/utL+sVpx24zRuQ/R3XHq/7I= X-RZG-CLASS-ID: mo00 Received: from mail (p5DC26BCD.dip0.t-ipconnect.de [93.194.107.205]) by smtp.strato.de (RZmta 37.8 DYNA|AUTH) with ESMTPSA id J06034r6J8mXKOZ (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Sun, 19 Jul 2015 10:48:33 +0200 (CEST) Subject: Re: GROOVY-6974: Path.size() should return 0 instead of throwing NoSuchFileException To: dev@groovy.incubator.apache.org References: <55AB5DDE.2000606@gmx.net> From: Alexander Veit X-Enigmail-Draft-Status: N1110 Message-ID: <55AB6461.3040902@nezwerg.de> Date: Sun, 19 Jul 2015 10:48:33 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 MIME-Version: 1.0 In-Reply-To: <55AB5DDE.2000606@gmx.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit > Imho we should close it as "won't fix", because it's a breaking change > and the current behavior makes more sense. +1. I'd rather change the behaviour of File#size(), to throw a NoSuchFileException if the file does not exist. -Alex