Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-1133

ChainResolver Checkmodified override bug

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0-RC2
    • Fix Version/s: 2.2.0-RC1
    • Component/s: Core
    • Labels:
      None

      Description

      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'
      repo.

      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);
      super.setCheckmodified(check);
      }

      I've attached an svn patch for it.

        Attachments

          Activity

            People

            • Assignee:
              maartenc Maarten Coene
              Reporter:
              jaco.uys jaco uys
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: