Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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()); }