geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbarr...@apache.org
Subject [43/46] geode-native git commit: GEODE-2741: Fix casting issues between generics.
Date Wed, 17 May 2017 17:50:25 GMT
GEODE-2741: Fix casting issues between generics.


Project: http://git-wip-us.apache.org/repos/asf/geode-native/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode-native/commit/c6fdafe5
Tree: http://git-wip-us.apache.org/repos/asf/geode-native/tree/c6fdafe5
Diff: http://git-wip-us.apache.org/repos/asf/geode-native/diff/c6fdafe5

Branch: refs/heads/develop
Commit: c6fdafe5793afd057e95b5fbb3d07b88665d1043
Parents: 9a06e16
Author: Jacob Barrett <jbarrett@pivotal.io>
Authored: Tue May 16 20:29:56 2017 +0000
Committer: Jacob Barrett <jbarrett@pivotal.io>
Committed: Tue May 16 20:29:56 2017 +0000

----------------------------------------------------------------------
 src/clicache/src/Properties.cpp         | 2 +-
 src/clicache/src/impl/CacheListener.hpp | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode-native/blob/c6fdafe5/src/clicache/src/Properties.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/Properties.cpp b/src/clicache/src/Properties.cpp
index 53a86ee..b499369 100644
--- a/src/clicache/src/Properties.cpp
+++ b/src/clicache/src/Properties.cpp
@@ -79,7 +79,7 @@ namespace Apache
       void Properties<TPropKey, TPropValue>::Insert( TPropKey key, TPropValue value
)
       {
         native::CacheableKeyPtr keyptr = Serializable::GetUnmanagedValueGeneric<TPropKey>(key,
true);
-        auto valueptr = Serializable::GetUnmanagedValueGeneric<TPropValue>(value, true);
+        native::CacheablePtr valueptr = Serializable::GetUnmanagedValueGeneric<TPropValue>(value,
true);
 
         _GF_MG_EXCEPTION_TRY2
 

http://git-wip-us.apache.org/repos/asf/geode-native/blob/c6fdafe5/src/clicache/src/impl/CacheListener.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/CacheListener.hpp b/src/clicache/src/impl/CacheListener.hpp
index d06a34c..a40a705 100644
--- a/src/clicache/src/impl/CacheListener.hpp
+++ b/src/clicache/src/impl/CacheListener.hpp
@@ -97,12 +97,14 @@ namespace Apache
 
           virtual void AfterRegionDisconnected(Apache::Geode::Client::IRegion<Object^,
Object^>^ region) override
           {
-            m_listener->AfterRegionDisconnected((IRegion<TKey, TValue>^) region);
+            auto gregion = Region<TKey, TValue>::Create(((Region<Object^, Object^>^)region)->GetNative());
+            m_listener->AfterRegionDisconnected(gregion);
           }
 
           virtual void Close(Apache::Geode::Client::IRegion<Object^, Object^>^ region)
override
           {
-            m_listener->Close((IRegion<TKey, TValue>^) region);
+            auto gregion = Region<TKey, TValue>::Create(((Region<Object^, Object^>^)region)->GetNative());
+            m_listener->Close(gregion);
           }
       };
     }  // namespace Client


Mime
View raw message