clone traits before passing to jcalls and map to human types
[ldk-java] / src / test / java / org / ldk / HumanObjectPeerTest.java
index 7993d1b91a23166ab7c64e813aea3650d0056e85..bca3e66cc44898c796eec7441eb256b3554232a3 100644 (file)
@@ -243,7 +243,7 @@ class HumanObjectPeerTestInstance {
             }
 
             @Override public void disconnect_socket() { assert false; }
-            @Override public boolean eq(long other_arg) { return bindings.LDKSocketDescriptor_get_obj_from_jcalls(other_arg).hash() == 2; }
+            @Override public boolean eq(SocketDescriptor other_arg) { return other_arg.hash() == 2; }
             @Override public long hash() { return 2; }
         });
 
@@ -255,7 +255,7 @@ class HumanObjectPeerTestInstance {
             }
 
             @Override public void disconnect_socket() { assert false; }
-            @Override public boolean eq(long other_arg) { return bindings.LDKSocketDescriptor_get_obj_from_jcalls(other_arg).hash() == 1; }
+            @Override public boolean eq(SocketDescriptor other_arg) { return other_arg.hash() == 1; }
             @Override public long hash() { return 1; }
         });