Details
-
Task
-
Resolution: Works as Designed
-
Major - P3
-
None
-
3.5.0
-
None
-
Debian Linux & Windows
Description
I was experimenting a bit with the POJO support added in 3.5. Just using the automatic PojoCodecProvider. But I noticed a weird behavior.
When your POJO class implements Iterable. The BSON conversion generates an array type instead document type. I think this is a bug,
You can reproduce it by using the PojoQuickTour example, Just make the Person implements Iterable<Address>, and implement the iterator<Address> and suddenly the code start failing/