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.

Compatibility with higher java versions

See original GitHub issue

An error was reported to me by @andris155, running one of my plugins in a Java 10 environment. From what I could find googling this, it should already be a problem in Java 9.

[16:56:28] [Server thread/INFO]: [GameBox] [ACF] Minecraft Version: 1.12
[16:56:28] [Server thread/ERROR]: Error occurred while enabling GameBox v2.1.1 (Is it up to date?)
java.lang.IncompatibleClassChangeError: Inconsistent constant pool data in classfile for class me/nikl/gamebox/common/acf/RootCommand. Method lambda$addChildShared$0(Lcom/google/common/collect/SetMultimap;Lme/nikl/gamebox/common/acf/BaseCommand;Ljava/util/Map$Entry;)V at index 55 is CONSTANT_MethodRef and should be CONSTANT_InterfaceMethodRef
	at me.nikl.gamebox.common.acf.RootCommand.addChildShared(RootCommand.java:45) ~[?:?]
	at me.nikl.gamebox.common.acf.BukkitRootCommand.addChild(BukkitRootCommand.java:74) ~[?:?]
	at me.nikl.gamebox.common.acf.BaseCommand.register(BaseCommand.java:285) ~[?:?]
	at me.nikl.gamebox.common.acf.BaseCommand.registerSubcommand(BaseCommand.java:317) ~[?:?]
	at me.nikl.gamebox.common.acf.BaseCommand.registerSubcommands(BaseCommand.java:254) ~[?:?]
	at me.nikl.gamebox.common.acf.BaseCommand.onRegister(BaseCommand.java:145) ~[?:?]
	at me.nikl.gamebox.common.acf.BaseCommand.onRegister(BaseCommand.java:124) ~[?:?]
	at me.nikl.gamebox.common.acf.BukkitCommandManager.registerCommand(BukkitCommandManager.java:184) ~[?:?]
	at me.nikl.gamebox.commands.GameBoxCommands.registerCommand(GameBoxCommands.java:64) ~[?:?]
	at me.nikl.gamebox.commands.GameBoxCommands.registerCommands(GameBoxCommands.java:44) ~[?:?]
	at me.nikl.gamebox.commands.GameBoxCommands.<init>(GameBoxCommands.java:40) ~[?:?]
	at me.nikl.gamebox.GameBox.reload(GameBox.java:215) ~[?:?]
	at me.nikl.gamebox.GameBox.onEnable(GameBox.java:80) ~[?:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[patched_1.12.2.jar:git-Paper-1414]
	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:316) [patched_1.12.2.jar:git-Paper-1414]
	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [patched_1.12.2.jar:git-Paper-1414]
	at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:395) [patched_1.12.2.jar:git-Paper-1414]
	at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:344) [patched_1.12.2.jar:git-Paper-1414]
	at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:442) [patched_1.12.2.jar:git-Paper-1414]
	at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:403) [patched_1.12.2.jar:git-Paper-1414]
	at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:341) [patched_1.12.2.jar:git-Paper-1414]
	at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:293) [patched_1.12.2.jar:git-Paper-1414]
	at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:616) [patched_1.12.2.jar:git-Paper-1414]
	at java.lang.Thread.run(Unknown Source) [?:?]
[16:56:28] [Server thread/INFO]: [GameBox] Disabling GameBox v2.1.1```

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
electronicboycommented, Jun 6, 2018

https://github.com/NiklasEi/gamebox/blob/master/pom.xml#L53 If that’s your project’s pom, your version of shade is 3 years old now, I’d suggest upgrading to 3.1.1

1reaction
aikarcommented, May 27, 2018

I’ve pushed up updated plugins all around. This is all I really know I can do to fix this. The Shade plugin was a major version bump, so highly likely can fix it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compatibility Guide for JDK 8 - Oracle
Java SE 8 is strongly compatible with previous versions of the Java platform. Almost all existing programs should run on Java SE 8...
Read more >
Java Versions and Features - Marco Behler
You can use this guide to get practical information on how to find and install the latest Java, understand the differences between Java...
Read more >
Is it possible to use higher version of java than mentioned?
1 Answer 1 ... Java versions are expected to be binary backwards-compatible. For example, JDK 8 can run code compiled by JDK 7...
Read more >
Compatibility Matrix - Gradle User Manual
A Java version between 8 and 19 is required to execute Gradle. Java 20 and later versions are not yet supported. Java 6...
Read more >
Maven jobs and Java versions compatibility
Before anything you need to configure the maven compiler plugin to target your oldest version of Java even if you are using a...
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