Results 1 to 2 of 2

Thread: Major Bug in Rich Object Mapping

  1. #1

    Default 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 at 03:56 AM.

  2. #2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •