Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A858E9801 for ; Wed, 18 Apr 2012 13:34:58 +0000 (UTC) Received: (qmail 99741 invoked by uid 500); 18 Apr 2012 13:34:58 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 99652 invoked by uid 500); 18 Apr 2012 13:34:58 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 99644 invoked by uid 99); 18 Apr 2012 13:34:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 13:34:58 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jak-commons-dev@m.gmane.org designates 80.91.229.3 as permitted sender) Received: from [80.91.229.3] (HELO plane.gmane.org) (80.91.229.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 13:34:48 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SKV1c-0001X7-OA for dev@commons.apache.org; Wed, 18 Apr 2012 15:34:24 +0200 Received: from mail.scalaris.com ([62.154.225.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Apr 2012 15:34:24 +0200 Received: from Joerg.Schaible by mail.scalaris.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Apr 2012 15:34:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: dev@commons.apache.org From: =?UTF-8?B?SsO2cmc=?= Schaible Subject: Re: svn commit: r1326609 - in /commons/proper/io/trunk/src: changes/changes.xml main/java/org/apache/commons/io/FileUtils.java Date: Wed, 18 Apr 2012 15:34:13 +0200 Organization: Scalaris AG Lines: 35 Message-ID: References: <20120416132849.D51A523888EA@eris.apache.org> <87vckxejss.fsf@v35516.1blu.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: mail.scalaris.com User-Agent: KNode/4.7.4 Gary Gregory wrote: > On Wed, Apr 18, 2012 at 12:38 AM, Stefan Bodewig > wrote: > >> On 2012-04-16, wrote: >> >> > [IO-324] Add Charset sister APIs to method that take a String charset >> name. >> >> The new methods cause problems for people who pass in null for the >> charset as they want the platform's system default. The compiler >> doesn't know which of the writeStringToFile methods to pick if the third >> param is null. >> > > You are correct. See the release notes: > > Compatibility with 2.2 and 1.4: > Binary compatible: Yes. > Source compatible: No, see the rare case in > https://issues.apache.org/jira/browse/IO-318. > Semantic compatible: No, see the rare case in > https://issues.apache.org/jira/browse/IO-318. > > There are two solutions if you want to use the latest [io], as noted in > the Jira: > > - type-cast the charset to String to Charset, or > - use the API that does not have a charset. We could add a writeStringToFile() method without parameter. No need for a null value, no need for the cast. - Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org