Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-3776

Delegate AEs no longer serialized to XML after resolving imports on aggregate

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.6.0SDK
    • Core Java Framework
    • None

    Description

      This is a regression in the UIMA SDK 2.6.0 RC 1 and worked in UIMA SDK 2.5.0.

      • Add a full delegate description to an AAE.
      • Serialize to XML: delegate description is serialized.
      • Call resolveImports()
      • Serialize to XML: delegate description is no longer serialized.
        public void testNoDelegatesToResolve() throws Exception {
          ResourceSpecifierFactory f = UIMAFramework.getResourceSpecifierFactory();
          AnalysisEngineDescription outer = f.createAnalysisEngineDescription();
          AnalysisEngineDescription inner = f.createAnalysisEngineDescription();
          outer.getDelegateAnalysisEngineSpecifiersWithImports().put("inner", inner);
      
          StringWriter outerXml = new StringWriter();
          outer.toXML(outerXml);
          
          // Resolving the imports removes the inner AE description
          outer.resolveImports(UIMAFramework.newDefaultResourceManager());
          
          StringWriter outerXml2 = new StringWriter();
          outer.toXML(outerXml2);
      
          Assert.assertEquals(outerXml.toString(), outerXml2.toString());
        }
      

      Attachments

        Activity

          People

            schor Marshall Schor
            rec Richard Eckart de Castilho
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: