From e2d872fa205023e8f922d3dcbd2cf9ed665d7302 Mon Sep 17 00:00:00 2001 From: konsoletyper Date: Fri, 21 Feb 2014 17:34:49 +0400 Subject: [PATCH] Fixes dependency checking when casting arrays --- .../main/java/org/teavm/dependency/DependencyGraphBuilder.java | 3 +++ 1 file changed, 3 insertions(+) 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); } });