question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Annotations may get duplicated when using assembler

See original GitHub issue

Describe the bug

If I save the assembler window multiple times, then the annoation of the method gets duplicated. I guess duplicate annotations could get stripped, since they appear to be illegal bytecode see blow; however I am not an expert in this topic

java.lang.annotation.AnnotationFormatError: Duplicate annotation for class: interface org.bukkit.event.EventHandler: @org.bukkit.event.EventHandler(priority=NORMAL, ignoreCancelled=false)
	at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:126) ~[?:?]
	at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:73) ~[?:?]
	at java.lang.reflect.Executable.declaredAnnotations(Executable.java:604) ~[?:?]
	at java.lang.reflect.Executable.declaredAnnotations(Executable.java:602) ~[?:?]
	at java.lang.reflect.Executable.getAnnotation(Executable.java:572) ~[?:?]
	at java.lang.reflect.Method.getAnnotation(Method.java:695) ~[?:?]
	<snip>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Geolyktcommented, Apr 10, 2021

K, I’ll test it right away

Edit: appears to work 🎉

0reactions
Col-Ecommented, Apr 10, 2021

Seems to be fixed with 3c69b23e079397dbfe91ba14c7224bef61a84fc2, release should be out when CI finishes

Read more comments on GitHub >

github_iconTop Results From Across the Web

De-duplicate identical issue annotations from problemMatchers
Here is an extremely simple reproduction where I am getting duplicate annotations using problem matchers, it appears to be a bug in the ......
Read more >
Duplicated classes in Intellij IDEA when using Android ...
This problem will be fixed in IDEA 12.0.1. Workaround for 12.0 build: explicitly exclude the root with the generated sources from compilation. You...
Read more >
High duplicate BUSCOs after annotation but not assembly
I annotated with a close relative as a reference, with Maker set for Eukaryota, and I used BUSCO 5.2.2 with Endopterygota odb10. According...
Read more >
[SOLVED] Java Compiler duplicates annotations - SpigotMC
Hi, has anyone experience with javac duplicating some annotations? For example, following method: @NotNull Path add(@Nullable Object key); ...
Read more >
Long-read sequence and assembly of segmental duplications
Sequence reads assigned to each PSV cluster are independently assembled using Canu and error-corrected using Quiver. The approach: Segmental ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found