InventivetalentDev / AnimatedFrames

Play GIFs in Minecraft
MIT License
188 stars 34 forks source link

noSuchFieldException: modifiers when loading AnimatedFrames on 1.15.2 #202

Closed ItsNewe closed 3 years ago

ItsNewe commented 3 years ago

When loaded on Paper 1.15.2, AnimatedFrames throws a noSuchField which seems related to pluginAnnotations

Plugin version: 4.12.1-SNAPSHOT

Spigot version: 1.15.2-R0.1-SNAPSHOT

Relevant stack trace:

java.lang.NoSuchFieldException: modifiers
[13:43:08 WARN]:        at java.base/java.lang.Class.getDeclaredField(Class.java:2489)
[13:43:08 WARN]:        at org.inventivetalent.pluginannotations.AccessUtil.setAccessible(AccessUtil.java:15)
[13:43:08 WARN]:        at org.inventivetalent.pluginannotations.command.AnnotatedCommand.getCommandMap(AnnotatedCommand.java:383)
[13:43:08 WARN]:        at org.inventivetalent.pluginannotations.command.AnnotatedCommand.register(AnnotatedCommand.java:376)
[13:43:08 WARN]:        at org.inventivetalent.pluginannotations.command.CommandAnnotations.registerCommands(CommandAnnotations.java:39)
[13:43:08 WARN]:        at org.inventivetalent.pluginannotations.command.CommandAnnotations.load(CommandAnnotations.java:47)
[13:43:08 WARN]:        at org.inventivetalent.animatedframes.AnimatedFramesPlugin.onEnable(AnimatedFramesPlugin.java:79)
ItsNewe commented 3 years ago

command/AnnotatedCommand.java:25 -> AccessUtil.java:25

Is the Field object that is passed to PluginAnnotations faulty or is it the modifiers check's fault?

ItsNewe commented 3 years ago

Seeing as the problem happened with JDK13 ( #159 ), i'll clarify that JDK14 is used here

stale[bot] commented 3 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.