From 24952e5b86cd3e09c3bbc9f2bf9a9ca2a8a50235 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Mon, 12 Oct 2015 21:26:05 +0300 Subject: [PATCH] Fix bug in JSO implementation --- .../src/main/java/org/teavm/jso/impl/JSClassProcessor.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jso/impl/src/main/java/org/teavm/jso/impl/JSClassProcessor.java b/jso/impl/src/main/java/org/teavm/jso/impl/JSClassProcessor.java index 443c3664a..c92a85f4a 100644 --- a/jso/impl/src/main/java/org/teavm/jso/impl/JSClassProcessor.java +++ b/jso/impl/src/main/java/org/teavm/jso/impl/JSClassProcessor.java @@ -1125,6 +1125,13 @@ class JSClassProcessor { if (method != null) { return method; } + if (cls.getParent() != null && !cls.getParent().equals(cls.getName()) + && !cls.getParent().equals("java.lang.Object")) { + method = getMethod(new MethodReference(cls.getParent(), ref.getDescriptor())); + if (method != null) { + return method; + } + } for (String iface : cls.getInterfaces()) { method = getMethod(new MethodReference(iface, ref.getDescriptor())); if (method != null) {