Java7 only issues in gui-rework branch
EoD opened this issue ยท 3 comments
I found that you are unable to compile the gui-rework branch with java 6.
Can you rework such that it works with Java 6? If not, I was wondering if there was a way to change the "java compliance level" to 1.7 automatically with gradle.
(Eclipse)
Binary literals can only be used with source level 1.7 or greater BlockMoarSign.java /MoarSigns/src/main/java/gory_moon/moarsigns/blocks line 114 Java Problem
Binary literals can only be used with source level 1.7 or greater BlockMoarSign.java /MoarSigns/src/main/java/gory_moon/moarsigns/blocks line 250 Java Problem
Binary literals can only be used with source level 1.7 or greater BlockMoarSign.java /MoarSigns/src/main/java/gory_moon/moarsigns/blocks line 328 Java Problem
Binary literals can only be used with source level 1.7 or greater GuiMoarSign.java /MoarSigns/src/main/java/gory_moon/moarsigns/client/interfaces line 309 Java Problem
Binary literals can only be used with source level 1.7 or greater ItemMoarSign.java /MoarSigns/src/main/java/gory_moon/moarsigns/items line 140 Java Problem
Binary literals can only be used with source level 1.7 or greater MoarSignRenderer.java /MoarSigns/src/main/java/gory_moon/moarsigns/client/renderers line 41 Java Problem
./gradlew runClient
****************************
Powered By MCP:
http://mcp.ocean-labs.de/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn
MCP Data version : unknown
****************************
Found AccessTransformer in main resources: moarSigns_at.cfg
:compileApiJava UP-TO-DATE
:processApiResources UP-TO-DATE
:apiClasses UP-TO-DATE
:sourceMainJava UP-TO-DATE
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
/tmp/MoarSigns/build/sources/java/gory_moon/moarsigns/blocks/BlockMoarSign.java:114: error: binary literals are not supported in -source 1.6
int side = l & 0b111;
^
(use -source 7 or higher to enable binary literals)
/tmp/MoarSigns/build/sources/java/gory_moon/moarsigns/client/interfaces/GuiMoarSign.java:309: error: binary literals are not supported in -source 1.6
int k = i & 0b111;
^
(use -source 7 or higher to enable binary literals)
/tmp/MoarSigns/build/sources/java/gory_moon/moarsigns/client/renderers/MoarSignRenderer.java:41: error: binary literals are not supported in -source 1.6
int side = i & 0b111;
^
(use -source 7 or higher to enable binary literals)
/tmp/MoarSigns/build/sources/java/gory_moon/moarsigns/items/ItemMoarSign.java:140: error: binary literals are not supported in -source 1.6
side += 0b1000;
^
(use -source 7 or higher to enable binary literals)
4 errors
1 warning
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
Hm, I thought I fixed this already, apparently not. I guess I forgot to push the changes.
I currently don't have access to the computer with it on so I will do is as soon as possible, the end of this week or the beginning of next.