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

TypeSystemUtils.typeSystem2TypeSystemDescription produces invalid output for arrays with elementType specified

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2
    • Component/s: Core Java Framework
    • Labels:
      None

      Description

      User reports: if CAS was created from a TypeSystem Descriptor containing a feature such as:
      <featureDescription>
      <name>compensationArray</name>
      <description></description>
      <rangeTypeName>uima.cas.FSArray</rangeTypeName>
      <elementType>uima.tcas.Annotation</elementType>
      </featureDescription>

      If you use TypeSystemUtil.typeSystem2TypeSystemDescription to generate a new TypeSystem descriptor from this, it will look like:
      <featureDescription>
      <name>compensationArray</name>
      <description></description>
      <rangeTypeName>uima.tcas.Annotation[]</rangeTypeName>
      </featureDescription>

      If you try to create a new CAS fromt his descriptor it will fail.

        Attachments

          Activity

            People

            • Assignee:
              alally Adam P. Lally
              Reporter:
              alally Adam P. Lally
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: