You are viewing a plain text version of this content. The canonical link for it is here.
Posted to graffito-commits@incubator.apache.org by cl...@apache.org on 2005/09/21 18:49:52 UTC

svn commit: r290787 - /incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/objectconverter/ObjectConverter.java

Author: clombart
Date: Wed Sep 21 11:49:48 2005
New Revision: 290787

URL: http://svn.apache.org/viewcvs?rev=290787&view=rev
Log:
* Change exception description
* Inject the objectconverter & the mapper into a new instantiated collection converter.

Modified:
    incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/objectconverter/ObjectConverter.java

Modified: incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/objectconverter/ObjectConverter.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/objectconverter/ObjectConverter.java?rev=290787&r1=290786&r2=290787&view=diff
==============================================================================
--- incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/objectconverter/ObjectConverter.java (original)
+++ incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/objectconverter/ObjectConverter.java Wed Sep 21 11:49:48 2005
@@ -354,7 +354,7 @@
         }
         catch (Exception e)
         {
-            throw new JcrMappingException("Impossible to store the bean fields", e);
+            throw new JcrMappingException("Impossible to store the collection fields", e);
         }
         
     }    
@@ -434,7 +434,8 @@
              else
              {
                  Class converterClass = Class.forName(className);
-                 return (CollectionConverter) ConstructorUtils.invokeConstructor(converterClass, this);
+                 Object[] param  = {this, this.mapper};
+                 return (CollectionConverter) ConstructorUtils.invokeConstructor(converterClass, param);
              }
         }
         catch (Exception e)