geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Kimura (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GEODE-3453) Fix native client function tests to use updated API
Date Thu, 17 Aug 2017 00:33:00 GMT
David Kimura created GEODE-3453:
-----------------------------------

             Summary: Fix native client function tests to use updated API
                 Key: GEODE-3453
                 URL: https://issues.apache.org/jira/browse/GEODE-3453
             Project: Geode
          Issue Type: Bug
          Components: native client
            Reporter: David Kimura


Remove deprecated API call in order to build and test against latest server.

This change broke test code calling into deprecated function: https://issues.apache.org/jira/browse/GEODE-254

Following diff should be sufficient to fix this issue.
{noformat}
diff --git a/src/tests/javaobject/GetFunctionExeHA.java b/src/tests/javaobject/GetFunctionExeHA.java
index 62216c07..ece5f337 100644
--- a/src/tests/javaobject/GetFunctionExeHA.java
+++ b/src/tests/javaobject/GetFunctionExeHA.java
@@ -35,7 +35,7 @@ public class GetFunctionExeHA extends FunctionAdapter implements Declarable{
     RegionFunctionContext context = (RegionFunctionContext)fc;
     System.out.println("Data set :: " + context.getDataSet());
     Region region = PartitionRegionHelper.getLocalDataForContext(context);
-    Set keys = region.keys();
+    Set keys = region.keySet();
     Iterator itr = keys.iterator();
     ResultSender sender = context.getResultSender();
     Object k = null;
{noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message