Last active
October 29, 2022 16:32
-
-
Save Sparky983/c64f08163e47b2e588c322798e135afe to your computer and use it in GitHub Desktop.
is suppose to return `Annotation[]{@deprecated}` but throws an index out of bounds exception
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main { | |
public static void main(String[] args) { | |
new Main().main(); | |
} | |
public void main() { | |
class LocalClass { | |
LocalClass(@Deprecated String s) {} | |
} | |
LocalClass.class.getDeclaredConstructors()[0].getParameters()[1].getDeclaredAnnotations(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment