Bug #684 (closed)
Opened 16 years ago
Closed 16 years ago
blitz implementation of Pojos.findAnnotations throws a ClassCastException
|Reported by:||jamoore||Owned by:||jamoore|
|Total Remaining Time:||n.a.|
The mapping logic doesn't recurse down into the Map<Long,Set> to convert it to a List. Easiest solution is probably to enforce "No sets in Ice" since the other language bindings don't have them anyway.
Change History (1)
comment:1 Changed 16 years ago by jmoore
- Resolution set to fixed
- Status changed from new to closed
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.
r1497 closes. In the Java/Ice? mapping, everything is now a List for simplicity. Some cleaning up needs to be done in the code-generation to reflect this.
Another bug was uncovered with the switch: apparently, the hash function for empty collections (lists only?) was inexact enough that model objects were sharing collections. E.g. after mapping, a ProjectI and a DatasetI would both have the same collection instance. This caused duplicates in the collections. Solved by changing HashMap to IdentityHashMap in common/.../ModelMapper.java.