diff --git a/core/src/main/java/org/teavm/parsing/Parser.java b/core/src/main/java/org/teavm/parsing/Parser.java index 04c7f48e5..ed6686661 100644 --- a/core/src/main/java/org/teavm/parsing/Parser.java +++ b/core/src/main/java/org/teavm/parsing/Parser.java @@ -343,6 +343,11 @@ public class Parser { desc = desc.substring(1, desc.length() - 1); } desc = desc.replace('/', '.'); + + if (annotations.get(desc) != null) { + continue; + } + AnnotationHolder annot = new AnnotationHolder(desc); parseAnnotationValues(annot, annotNode.values); annotations.add(annot);