You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Preferences, Build, Execution, Development, Build Tools, Maven, Maven home directory was set to built-in Maven 3 "(Version 3.3.9"). Changed to /Users/admin/.m2, which is detected as version 3.5.0. But no difference.
Compiler > Java Compiler, had set to Eclipse. Changed to javac and am now able to compile no errors.
For those who come across this page from Google, this is caused by Java 1.7 being specified as the target version in pom.xml.
I encountered the same problem while attempting to compile the latest version of Spigot in IntelliJ using JDK 10.0.1 and javac for my compiler within the spigot-api module. After trying the above, I searched some more and decided to take a closer look at the target bytecode version numbers I had glanced over while checking which compiler I was using.
Module
Target bytecode version
spigot
1.8
spigot-api
1.7
spigot-parent
1.5
I then looked to see when java.util.function.Function was added and that was 1.8.
Two solutions to this: update the target bytecode version to 1.8 or newer OR disable use of module-specific JDKs
When I compile in IntelliJ IDEA, but not from Maven on the command-line, there is a compile error on the code added for #51 Sponge support:
The text was updated successfully, but these errors were encountered: