You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Richard Eckart de Castilho (JIRA)" <de...@uima.apache.org> on 2014/04/24 18:04:18 UTC
[jira] [Created] (UIMA-3776) Delegate AEs no longer serialized to
XML after resolving imports on aggregate
Richard Eckart de Castilho created UIMA-3776:
------------------------------------------------
Summary: Delegate AEs no longer serialized to XML after resolving imports on aggregate
Key: UIMA-3776
URL: https://issues.apache.org/jira/browse/UIMA-3776
Project: UIMA
Issue Type: Bug
Components: Core Java Framework
Reporter: Richard Eckart de Castilho
Fix For: 2.6.0SDK
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.
{noformat}
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());
}
{noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)