ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaco Uys <>
Subject possible bug in ChainResolver
Date Fri, 02 Oct 2009 11:27:56 GMT

I have found an issue some time ago with resolving dependencies via a
chain resolver.
I can not remember the exact scenario, but had to do with resolving A
-> B -> C where A and C comes from a local repo and B from a 'shared'

The issue seems to be with ChainResolver that overrides 'public void
setCheckmodified(boolean check)'. The 'checkModified' value is not
propagated through to the base class 'AbstractResolver'. This results
in the 'AbstractResolver.getCacheOptions(ResolveData data)' behaving
incorrectly when creating the 'CacheMetadataOptions'.

The fix I made was to change the 'ChainResolver.setCheckmodified' to:

public void setCheckmodified(boolean check) {
        checkmodified = Boolean.valueOf(check);

I've attached an svn patch for it.

Regards Jaco

  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message