From c8090c0bde2b1ea04a19eeba822fae197b1fa3c8 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Sun, 1 Mar 2015 12:07:39 +0300 Subject: [PATCH] https://github.com/konsoletyper/teavm/issues/51 --- .../main/java/org/teavm/jso/plugin/JSODependencyListener.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/teavm-jso/src/main/java/org/teavm/jso/plugin/JSODependencyListener.java b/teavm-jso/src/main/java/org/teavm/jso/plugin/JSODependencyListener.java index 75ec8f361..53c605b63 100644 --- a/teavm-jso/src/main/java/org/teavm/jso/plugin/JSODependencyListener.java +++ b/teavm-jso/src/main/java/org/teavm/jso/plugin/JSODependencyListener.java @@ -84,7 +84,9 @@ class JSODependencyListener implements DependencyListener { for (MethodReader method : cls.getMethods()) { if (exposedCls.inheritedMethods.containsKey(method.getDescriptor()) || exposedCls.methods.containsKey(method.getDescriptor())) { - agent.linkMethod(method.getReference(), null).use(); + MethodDependency methodDep = agent.linkMethod(method.getReference(), null); + methodDep.getVariable(0).propagate(agent.getType(name)); + methodDep.use(); } } return exposedCls;