CasMultiplier doesn't work for PEARs
------------------------------------
Key: UIMA-1562
URL: https://issues.apache.org/jira/browse/UIMA-1562
Project: UIMA
Issue Type: Bug
Components: Core Java Framework
Affects Versions: 2.2.2
Environment: n/a
Reporter: DJ McCloskey
Priority: Critical
Fix For: 2.3
The original code called process(aCas) and returned the EmptyCasIterator. Thus
CASes produced were thrown away. The following is a two line change fix:
org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapper
public CasIterator processAndOutputNewCASes(CAS aCAS)
throws AnalysisEngineProcessException {
UIMAFramework.getLogger(this.getClass()).logrb(Level.FINE,
this.getClass().getName(), "processAndOutputNewCASes",
LOG_RESOURCE_BUNDLE, "UIMA_analysis_engine_process_begin__FINE",
new Object[] { this.ae.getAnalysisEngineMetaData().getName() });
CasIterator result = this.ae.processAndOutputNewCASes(aCAS); // FIXED
LINE
UIMAFramework.getLogger(this.getClass()).logrb(Level.FINE,
this.getClass().getName(), "processAndOutputNewCASes",
LOG_RESOURCE_BUNDLE, "UIMA_analysis_engine_process_end__FINE",
new Object[] { this.ae.getAnalysisEngineMetaData().getName() });
return result; // FIXED LINE
}
Just the indicated lines are changed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.