From 033e57e7e7b604c13fe56f3dac8100402640826e Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Sat, 17 Sep 2016 20:18:59 +0300 Subject: [PATCH] WASM: fix bug in generating virtual table in some cases --- .../java/org/teavm/model/classes/InterfaceToClassMapping.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/teavm/model/classes/InterfaceToClassMapping.java b/core/src/main/java/org/teavm/model/classes/InterfaceToClassMapping.java index 211af3383..bf052dbca 100644 --- a/core/src/main/java/org/teavm/model/classes/InterfaceToClassMapping.java +++ b/core/src/main/java/org/teavm/model/classes/InterfaceToClassMapping.java @@ -84,7 +84,7 @@ public class InterfaceToClassMapping { } } - return a; + return firstPath.get(0); } private static List pathToRoot(ClassReaderSource classSource, String className) {