uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Eckart de Castilho (JIRA)" <...@uima.apache.org>
Subject [jira] [Commented] (UIMA-3776) Delegate AEs no longer serialized to XML after resolving imports on aggregate
Date Thu, 24 Apr 2014 17:13:16 GMT

    [ https://issues.apache.org/jira/browse/UIMA-3776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13979968#comment-13979968
] 

Richard Eckart de Castilho commented on UIMA-3776:
--------------------------------------------------

Allowing access to the "delegateAnalysisEngineSpecifiers" to make the logic mentioned above
work causes many other test cases to fail.

[~schor], maybe you can provide some clue on the intended behavior here and why the "delegateAnalysisEngineSpecifiers"
attribute is not exposed...

> 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)

Mime
View raw message