Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1705

OBRAriesResolver should identify the application being transformed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Application
    • None

    Description

      The OBRAriesResolver.toImportedBundle method can import duplicated bundles. The buggy code is as follow:

      OBRAriesResolver.java
      private Collection<ImportedBundle> toImportedBundle(Collection<Content> content) throws ResolverException
         {
           log.debug(LOG_ENTRY, "toImportedBundle", content);
      
           List<ImportedBundle> result = new ArrayList<ImportedBundle>();
      

      The arraylist shall be replaced with Hashset to remove duplicates. Indeed, ARIES-464 fixed a similar bug in PostResolveTransformer. Its fixed code is:

      PostResolveTransformer.java
       private Set<ImportedBundle> toImportedBundle(Collection<Content> content) throws ResolverException
        {
      
          _logger.debug(LOG_ENTRY, "toImportedBundle", new Object[]{content});
      
          Set<ImportedBundle> result = new HashSet<ImportedBundle>();
      

      Attachments

        1. aries.patch
          0.9 kB
          Hao Zhong

        Activity

          People

            Unassigned Unassigned
            haozhong Hao Zhong
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: