chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1371579 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/PropertyCreationHelper.java
Date Fri, 10 Aug 2012 05:47:20 GMT
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);
         	}
         }



Mime
View raw message