Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Steven Simpson Newsgroups: comp.lang.java.programmer Subject: Re: about class dependancies Date: Thu, 3 Dec 2015 15:15:34 +0000 Organization: A noiseless patient Spider Lines: 13 Message-ID: References: <565f816b$0$3054$426a74cc@news.free.fr> <77dedcc2-f07c-4234-9b5c-22993b04c6d1@googlegroups.com> <565f9194$0$4565$426a74cc@news.free.fr> <565f9a2e$0$3878$426a74cc@news.free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: mx02.eternal-september.org; posting-host="0f46201dfb033013587df4a1e4e2b2a5"; logging-data="30984"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+DqV9y0458ClwUC/ev0fyxNWeQugV1hnw=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 In-Reply-To: <565f9a2e$0$3878$426a74cc@news.free.fr> X-Mozilla-News-Host: news://localhost Cancel-Lock: sha1:LhglLV31fyTn5yvN9qJkNRAWWI8= Xref: csiph.com comp.lang.java.programmer:33290 On 03/12/15 01:26, regis wrote: > (I would be interested if anyone knows other simple ways > to make A break with a change in B...) A calls B.f, but doesn't use the return value, and then B.f's return type changes. Like the in-lined constant, A.java doesn't have to change, but it does have to be recompiled, because the return type is part of the method's identifier that A.class uses to refer to B. -- ss at comp dot lancs dot ac dot uk