geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Kimura (JIRA)" <>
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
             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:

Following diff should be sufficient to fix this issue.
diff --git a/src/tests/javaobject/ b/src/tests/javaobject/
index 62216c07..ece5f337 100644
--- a/src/tests/javaobject/
+++ b/src/tests/javaobject/
@@ -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;

This message was sent by Atlassian JIRA

View raw message