Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.2.0SDK
-
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
- links to