Skip to content

Commit

Permalink
fix(bridge): Init order matters!
Browse files Browse the repository at this point in the history
This fixes a bug with some nested objects.
  • Loading branch information
e3ndr committed Aug 18, 2024
1 parent 39654ec commit 38532b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import java.io.StringWriter;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -33,7 +33,7 @@ class ImplSaucerBridge implements SaucerBridge {

private _ImplSaucer saucer;

private Map<String, JavascriptObjectWrapper> objects = new HashMap<>();
private Map<String, JavascriptObjectWrapper> objects = new LinkedHashMap<>();

private MessageCallback messageCallback = (Pointer $raw) -> {
JsonObject message;
Expand Down

0 comments on commit 38532b8

Please sign in to comment.