[ 
https://issues.apache.org/jira/browse/GEODE-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Swapnil Bawaskar updated GEODE-3453:
------------------------------------
    Fix Version/s:     (was: 1.3.0)

> 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)

Reply via email to