Associations don't work when a resultMap has an <association .../> element and the property associated with the assocation is a primitive array (e.g. int[]) and the sub-select's resultType is of type int.
MyBatis has the result correctly returned in a int[], but the code fails because it tries to cast that result into an Object [].
The only way I could get this to work was to change the setter of my property to take an Integer[] instead of an int[].
This used to work in MyBatis 2.