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

CAS.select(null) returns all annotations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.0SDK
    • 3.3.0SDK
    • Core Java Framework
    • None

    Description

      When calling CAS.select() with a Type null argument, then all annotations are returned. I believe when select is called with a null argument, an IllegalArgumentException should be thrown instead. It is very surprising if you write code like this:

      var type = cas.getTypeSystem("non.existing.Type");
      cas.select(type).asList() <= returns a list of all feature structures in the CAS, e.g. the DocumentAnnotation etc.
      

      Attachments

        Issue Links

          Activity

            People

              rec Richard Eckart de Castilho
              rec Richard Eckart de Castilho
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: