From 5e37e2a45bb8340cd9f4f2712aa4129145f5222b Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Fri, 25 Mar 2022 10:27:15 +0300 Subject: [PATCH] Fix reporting missing static field if containing class is never referenced directly --- .../main/java/org/teavm/model/util/MissingItemsProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/teavm/model/util/MissingItemsProcessor.java b/core/src/main/java/org/teavm/model/util/MissingItemsProcessor.java index 5e7822dd4..0c3a1d691 100644 --- a/core/src/main/java/org/teavm/model/util/MissingItemsProcessor.java +++ b/core/src/main/java/org/teavm/model/util/MissingItemsProcessor.java @@ -141,7 +141,7 @@ public class MissingItemsProcessor { private boolean checkClass(TextLocation location, String className) { if (!reachableClasses.contains(className)) { - return false; + return true; } if (!dependencyInfo.getClass(className).isMissing()) {