From 52ddd96c7dd14372be88796cb2b14be4ef3ee822 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Sat, 5 May 2018 18:38:18 +0300 Subject: [PATCH] Fix duplicate execution in some cases when accessing class through reflection --- .../java/org/teavm/backend/javascript/rendering/Renderer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/org/teavm/backend/javascript/rendering/Renderer.java b/core/src/main/java/org/teavm/backend/javascript/rendering/Renderer.java index 30b0abeb6..d3e6b999b 100644 --- a/core/src/main/java/org/teavm/backend/javascript/rendering/Renderer.java +++ b/core/src/main/java/org/teavm/backend/javascript/rendering/Renderer.java @@ -447,6 +447,7 @@ public class Renderer implements RenderingManager { private void renderEraseClinit(ClassNode cls) throws IOException { writer.appendClass(cls.getName()).append("_$callClinit").ws().append("=").ws() + .appendClass(cls.getName()).append(".$clinit").ws().append("=").ws() .append("function(){};").newLine(); }