You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by je...@apache.org on 2012/08/10 07:47:20 UTC

svn commit: r1371579 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/PropertyCreationHelper.java

Author: jens
Date: Fri Aug 10 05:47:20 2012
New Revision: 1371579

URL: http://svn.apache.org/viewvc?rev=1371579&view=rev
Log:
InMemory: fill a complete PropertyData object for score to avoid strange exceptions in bindings layer and Tomcat

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/PropertyCreationHelper.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/PropertyCreationHelper.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/PropertyCreationHelper.java?rev=1371579&r1=1371578&r2=1371579&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/PropertyCreationHelper.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/PropertyCreationHelper.java Fri Aug 10 05:47:20 2012
@@ -307,8 +307,17 @@ public class PropertyCreationHelper {
         		queryName = "SEARCH_SCORE";
         		if (!funcEntry.getKey().equals("SCORE"))
         			queryName = funcEntry.getKey();
-                PropertyDecimal pd = objFactory.createPropertyDecimalData(queryName, BigDecimal.valueOf(1.0));
+                
+//        		PropertyDecimal pd = objFactory.createPropertyDecimalData(queryName, BigDecimal.valueOf(1.0));
+        		// does not give me an impl class, so directly use it
+                PropertyDecimalImpl pd = new PropertyDecimalImpl();
+
                 // fixed dummy value
+        		pd.setValue(BigDecimal.valueOf(1.0));
+        		pd.setId(queryName);
+        		pd.setQueryName(queryName);
+        		pd.setLocalName("SCORE");
+        		pd.setDisplayName("Score");
                 mappedProperties.put(funcEntry.getKey(), pd);
         	}
         }