Announcement Announcement Module
Collapse
No announcement yet.
Major Bug in Rich Object Mapping Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Major Bug in Rich Object Mapping

    After upgrading to the latest Snapshot i encountered a major bug.
    (was not in the SNAPSHOT a few days ago).

    It looks like you are using Arrays.asList() when deserializing a collection that is contained in an entity.

    Code:
    class Foo {
    
     List<Bar> bars;
    
    }
    Arrays.asList() uses Arrays.ArrayList which extends AbstractList and is does not support many operations. add() for example!

    SO you cant call foo#getBars().add(new Bar())

    to be a little bit more precise, a java.lang.UnsupportedOperationException is thrown
    Last edited by Matthias S.; Apr 7th, 2011, 03:56 AM.

  • #2
    I created a JIRA ticket:

    https://jira.springsource.org/browse/DATADOC-86

    Comment

    Working...
    X