mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Workaround for bug in ASM which adds java/lang/Synthetic annotation twice. Should fix #278
This commit is contained in:
parent
d882fd14a6
commit
7019e1ada6
|
@ -343,6 +343,11 @@ public class Parser {
|
||||||
desc = desc.substring(1, desc.length() - 1);
|
desc = desc.substring(1, desc.length() - 1);
|
||||||
}
|
}
|
||||||
desc = desc.replace('/', '.');
|
desc = desc.replace('/', '.');
|
||||||
|
|
||||||
|
if (annotations.get(desc) != null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
AnnotationHolder annot = new AnnotationHolder(desc);
|
AnnotationHolder annot = new AnnotationHolder(desc);
|
||||||
parseAnnotationValues(annot, annotNode.values);
|
parseAnnotationValues(annot, annotNode.values);
|
||||||
annotations.add(annot);
|
annotations.add(annot);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user