diff --git a/teavm-jso/src/main/java/org/teavm/jso/plugin/JavascriptNativeProcessor.java b/teavm-jso/src/main/java/org/teavm/jso/plugin/JavascriptNativeProcessor.java index 7776e7a8c..c866ee8d6 100644 --- a/teavm-jso/src/main/java/org/teavm/jso/plugin/JavascriptNativeProcessor.java +++ b/teavm-jso/src/main/java/org/teavm/jso/plugin/JavascriptNativeProcessor.java @@ -251,6 +251,10 @@ class JavascriptNativeProcessor { } public void addFunctorField(ClassHolder cls, MethodReference method) { + if (cls.getAnnotations().get(FunctorImpl.class.getName()) != null) { + return; + } + FieldHolder field = new FieldHolder("$$jso_functor$$"); field.setLevel(AccessLevel.PUBLIC); field.setType(ValueType.parse(JSObject.class));