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

TypeSystemUtils.typeSystem2TypeSystemDescription produces invalid output for arrays with elementType specified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.2
    • Core Java Framework
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: