Closed reckart closed 2 years ago
Describe the bug Transitively referenced primitive arrays not returned by cas._find_all_fs().
cas._find_all_fs()
To Reproduce
def test_scanning_for_transitively_referenced_integer_array(): typesystem = TypeSystem() Foo = typesystem.create_type("Foo") typesystem.create_feature( Foo, "ref", rangeTypeName="uima.cas.IntegerArray", elementType="uima.cas.Integer", multipleReferencesAllowed=True, ) cas = Cas(typesystem) foo = Foo() cas.add(foo) IntegerArray = typesystem.get_type("uima.cas.IntegerArray") int_array = IntegerArray() int_array.elements = [1, 2, 3] foo.ref = int_array all_fs = list(cas._find_all_fs()) assert int_array in all_fs
Expected behavior All feature structures should be returned by cas._find_all_fs()
Please complete the following information:
Describe the bug Transitively referenced primitive arrays not returned by
cas._find_all_fs()
.To Reproduce
Expected behavior All feature structures should be returned by
cas._find_all_fs()
Please complete the following information: