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 12226200C2D for ; Sat, 4 Mar 2017 15:54:12 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 10B3D160B71; Sat, 4 Mar 2017 14:54:12 +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 578C0160B66 for ; Sat, 4 Mar 2017 15:54:11 +0100 (CET) Received: (qmail 9939 invoked by uid 500); 4 Mar 2017 14:54:10 -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 9928 invoked by uid 99); 4 Mar 2017 14:54:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Mar 2017 14:54:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 7C019C0BA1 for ; Sat, 4 Mar 2017 14:54:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.301 X-Spam-Level: ** X-Spam-Status: No, score=2.301 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SORBS_SPAM=0.5, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id XtM-74lMGccu for ; Sat, 4 Mar 2017 14:54:06 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 501B45F1B3 for ; Sat, 4 Mar 2017 14:54:06 +0000 (UTC) Received: from [192.168.178.20] ([84.58.168.137]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.167]) with ESMTPSA (Nemesis) id 0Ltj2f-1cKygj09mX-0117zD for ; Sat, 04 Mar 2017 15:54:04 +0100 Subject: Re: [CONFIGURATION] Changing method parameter to base class type To: Commons Developers List References: <6e48c5d4-4d76-78e7-035c-d60c328f523c@oliver-heger.de> <0080a0e5-1013-08a2-8057-804026ea86b0@gmx.net> From: Oliver Heger Message-ID: <01522205-6098-e820-3d33-1e8ad92650f8@oliver-heger.de> Date: Sat, 4 Mar 2017 15:54:17 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <0080a0e5-1013-08a2-8057-804026ea86b0@gmx.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:AX004vtx9Tp2M+Zusj6ecBnT8J2Sboqsr7oGzQdofuULPcSonj9 5B2RR9lFv0NbwMoG3lG29s8EQ6oweSrORPeyUTXkRW6WFuSRORRRpaRNVvQ+gxLjh41lw75 d+1n7/mkWQfB6Db0eHH8ZPfb18szqOrySMkbeboqjLKb0Wl3O8gLLQ+3A5z0sz8nt7n81g7 k+TU3SKe5IYq8pgAx4JeA== X-UI-Out-Filterresults: notjunk:1;V01:K0:BHyYZI5c7fs=:X1e+cXRITBiL6nCGu76nyI OeWvScQPeNpCSVtzeyPgdQ9TJpgOmHegb4YHisx0JEoILUDrZlJWUTTsffVDHM93mxcE+ros+ s5I/FSRqS9mZ2vx6BZClQW/dEltaiD1Gkno2EYwK39pQNCrFxv4pXQMJ8OpNXybBix/opQxqe B18gd6B4JoDEKl10XUtsCtl70CsXVUAwI51nCWxghAB/KnGCPOgeK115T2egIiGrwdowlA0wU YhnvdOvT1N2eOPGy3NbbJoEeLvRi9XgtJaA4yVtb9YL73o4Za1OvZjhTtnETjhlWSucjYg0k4 llFIa0FVjUiY9QvNOO5qLbRBGe0j/nj2CxEb4srs8kRnLaqLVrersh4NikQhJigOWSklCcqVq apO5BgU5Xn0BkVjWuTLEyaHQPPhk5cwdf9pov+F0D+78yLCLK4x/b0dLieDnKeR95akZK41hQ f+S9xvld2YadPKU100BiC0i2CU4CAHclCnEFQL66Rvknjfl444+gCZb68sUFB7z+0OXrmMJE0 V18F5k9r3JVA2gt34DtKNUlOPMooNKexDoOVbnEbuFKEY4XLJV90qm8t/HT3kJUugR48qaWwX rFT4W2rpRbWwoS2FbqaqtFRi5puNNHSiMRuJiIcwnYyY1Xkx0tiKvptUT0cRhC8SjvEoitOAm nu+pLhdP4jxPb831YAW/+22nr2+l9Xt7pfOnuG0Ar4Y/TJFJHr8gB8mLnSJOkKGwx8zlWWRDl 3Tff0xFNGGKlRopz archived-at: Sat, 04 Mar 2017 14:54:12 -0000 Hi Pascal, Am 03.03.2017 um 23:33 schrieb Pascal Schumacher: > Hi Oliver, > > guess clirr is complaining because changing the parameter type of > methods is not binary compatible: > > http://stackoverflow.com/questions/1365409/refactored-methods-and-binary-compatibility-in-java > > > http://wiki.eclipse.org/Evolving_Java-based_APIs_2 yep, it was late yesterday. I came to the same conclusion after switching off my computer. The change is source compatible, but not binary compatible. I guess our best bet is to add new overloaded methods using the new parameter type and let the old ones delegate. Thanks Oliver > > -Pascal > > Am 03.03.2017 um 22:32 schrieb Oliver Heger: >> Hi, >> >> in CONFIGURATION-653 [1] it is proposed to change the type of some >> method parameters of utility methods from Configuration to the base type >> ImmutableConfiguration. This makes those methods broader in scope. >> >> I would expect that this is a change which should not affect client >> code. Nevertheless, clirr reports errors in these cases. I could imagine >> that there was a risk to break clients that override one of these >> methods. But they are static, so this should not be an issue. >> >> Do I miss something? >> Oliver >> >> [1] https://issues.apache.org/jira/browse/CONFIGURATION-653 >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >> For additional commands, e-mail: dev-help@commons.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org