Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
The CasCreationUtils.createCas(Collection,...) methods only accept certain kinds of objects in the Collection: AnalysisEngineDescription, CollectionReaderDescription, CasInitializerDescription, CasConsumerDescription, or ProcessingResourceMetaData. Any other kinds of objects in the collection are silently ignored.
A user tried to pass a TypeSystemDescription object, expecting that it would be used to initialize the CAS type system. This didn't work but didn't cause an error, so the user had a hard time figuring out what was wrong with their application.
There's no reason why these methods could accept TypeSystemDescription objects (as well as FsIndexCollection and TypePriorities objects). Furthermore they should throw an error if passed a type of object that is not allowed.