incubator-graffito-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clomb...@apache.org
Subject svn commit: r290787 - /incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/persistence/objectconverter/ObjectConverter.java
Date Wed, 21 Sep 2005 18:49:52 GMT
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)



Mime
View raw message