Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: using two different versions of JAR files Date: Thu, 26 Mar 2015 20:00:59 -0400 Organization: A noiseless patient Spider Lines: 43 Message-ID: References: <06d02c2a-6d23-47a9-bcb2-7bd710c9c385@googlegroups.com> <1ca55065-50ad-41c9-ad2b-435f6ae491df@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 27 Mar 2015 00:01:24 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="c50a9e5d554cfaba13eda1c71e805135"; logging-data="561"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+bYXWeyrD0jyADEI7q1GKZosf6/cSsHPE=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.5.0 In-Reply-To: Cancel-Lock: sha1:lJdvEEBprAum0LIHuyUxUocOa1c= Xref: csiph.com comp.lang.java.programmer:31387 On 03/26/2015 07:53 PM, Jeff Higgins wrote: > On 03/26/2015 07:05 PM, Jeff Higgins wrote: >> On 03/26/2015 09:18 AM, John wrote: >>> On Wednesday, March 25, 2015 at 7:31:33 PM UTC-4, Jeff Higgins wrote: >>>> On 03/25/2015 03:27 PM, John wrote: >>>>> Hi: >>>>> >>>>> Our JAVA programs are running as plugins inside a framework from a >>>>> company called "ABC". They use a JAR suppose called "xyz-1.0.3.jar". >>>>> >>>>> Our JAVA programs need to use newer version, xyz-1.0.5.jar, because >>>>> we found some bug inside xyz-1.0.3.jar >>>>> >>>>> The company "ABC" won't upgrade their JARS. >>>>> >>>>> In our code, when loading com.opq.rst.Hello.class, how can we make >>>>> sure it is not loaded from xyz-1.0.3.jar and it is loaded from >>>>> xyz-1.0.9.jar? > > In your code test for the presence of the bug. > If found you are using the buggy jar. > >>>>> >>>>> Thank you very much. >>>>> >>>> >>>> >>>> >>> >>> I have scanned through the document. I don't get any hints. >>> >> Huh. Did you get as far as: >> >> >> >> The crux of your problem seems to be your assertion: >> "The company "ABC" won't upgrade their JARS." >> Too bad. >> > Well, it seems your entire upstream needs to get busy in support of their downstream customers (you).