diff --git a/teavm-core/src/main/java/org/teavm/dependency/DependencyGraphBuilder.java b/teavm-core/src/main/java/org/teavm/dependency/DependencyGraphBuilder.java index d05dc6ebd..a4c7ecd02 100644 --- a/teavm-core/src/main/java/org/teavm/dependency/DependencyGraphBuilder.java +++ b/teavm-core/src/main/java/org/teavm/dependency/DependencyGraphBuilder.java @@ -228,6 +228,9 @@ class DependencyGraphBuilder { if (targetClass != null) { valueNode.connect(receiverNode, new DependencyTypeFilter() { @Override public boolean match(String type) { + if (targetClass.getName().equals("java.lang.Object")) { + return true; + } return isAssignableFrom(dependencyChecker.getClassSource(), targetClass, type); } });