Update java bindings with new generator and new upstream code
[ldk-java] / src / main / java / org / ldk / structs / ErrorAction.java
index efe34dd55c7401786611254727266e07f6265807..08f79d46b9c69e3783263a86fdacc2823e654bf7 100644 (file)
@@ -5,6 +5,10 @@ import org.ldk.enums.*;
 import org.ldk.util.*;
 import java.util.Arrays;
 
+
+/**
+ * Used to put an error message in a LightningError
+ */
 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
 public class ErrorAction extends CommonBase {
        private ErrorAction(Object _dummy, long ptr) { super(ptr); }
@@ -33,6 +37,7 @@ public class ErrorAction extends CommonBase {
                        super(null, ptr);
                        long msg = obj.msg;
                        ErrorMessage msg_hu_conv = new ErrorMessage(null, msg);
+                       msg_hu_conv.ptrs_to.add(this);
                        this.msg = msg_hu_conv;
                }
        }
@@ -47,6 +52,7 @@ public class ErrorAction extends CommonBase {
                        super(null, ptr);
                        long msg = obj.msg;
                        ErrorMessage msg_hu_conv = new ErrorMessage(null, msg);
+                       msg_hu_conv.ptrs_to.add(this);
                        this.msg = msg_hu_conv;
                }
        }