Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoSuchFieldException: modifiers @QuickLabelConfig.setStrategy #7

Open
maripo opened this issue Aug 29, 2021 · 0 comments
Open
Assignees

Comments

@maripo
Copy link
Owner

maripo commented Aug 29, 2021

QuickLabelConfig.setStrategy {QuickLabelCompositionStrategy}
java.lang.NoSuchFieldException: modifiers
at java.base/java.lang.Class.getDeclaredField(Class.java:2549)
at org.maripo.josm.quicklabel.config.QuickLabelConfig.setStrategy(QuickLabelConfig.java:96)
at org.maripo.josm.quicklabel.config.QuickLabelConfig.initCustomStrategy(QuickLabelConfig.java:58)
at org.maripo.josm.quicklabel.QuickLabelPlugin.(QuickLabelPlugin.java:32)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at org.openstreetmap.josm.plugins.PluginInformation.load(PluginInformation.java:374)
at org.openstreetmap.josm.plugins.PluginHandler.loadPlugin(PluginHandler.java:811)
at org.openstreetmap.josm.plugins.PluginHandler.loadPlugins(PluginHandler.java:896)
at org.openstreetmap.josm.plugins.PluginHandler.loadLatePlugins(PluginHandler.java:948)
at org.openstreetmap.josm.gui.MainApplication.loadLatePlugins(MainApplication.java:1219)
at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:954)
at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:281)
at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:739)

@maripo maripo self-assigned this Aug 29, 2021
maripo added a commit that referenced this issue Sep 1, 2021
maripo added a commit that referenced this issue Sep 4, 2021
* Use sun.misc.Unsafe instead of reflection to replace final field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant