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

Wrong error message when loading type system

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2
    • 2.2.1
    • Core Java Framework
    • None

    Description

      If I try to load the following type system definition

      <typeSystemDescription xmlns="http://uima.apache.org/resourceSpecifier">
      <name>InfomagicTypeSystem</name>
      <types>
      <typeDescription>
      <name>Foo</name>
      <supertypeName>Bar</supertypeName>
      </typeDescription>
      <typeDescription>
      <name>Bar</name>
      <supertypeName>Baz</supertypeName>
      </typeDescription>
      </types>
      </typeSystemDescription>

      I get the error message 'Undefined type "Bar", referenced as supertype of type "Foo"'. This is misleading, because Bar is defined. The real problem is that Baz is undefined.

      This is order-dependent: if I define Bar before Foo, then I get the appropriate message about Baz being undefined.

      Attachments

        Activity

          People

            twgoetz Thilo Goetz
            aaronkaplan Aaron Kaplan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: