MinecraftForge / Srg2Source

Applies source level refactors to java source code.
GNU Lesser General Public License v2.1
60 stars 32 forks source link

Crash during extractRangemapReplacedMain #18

Closed mezz closed 7 years ago

mezz commented 7 years ago

I get the following error when trying to gradle build: Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed) full gradle.log

Tracing things down, it looked similar to issue #14 so I looked into the logs to see where it was crashing. From the end of extractRangemapReplacedMain.log:

startProcessing "binnie\genetics\machine\indexer\ComponentApiaristIndexerInventory.java" md5: ff3f411669dde25aff450713b4898ee0
    Compile Error! Pb(883) '<>' operator is not allowed for source level below 1.7
    Compile Error! Pb(883) '<>' operator is not allowed for source level below 1.7
    Compile Error! Pb(883) '<>' operator is not allowed for source level below 1.7
    Compile Error! Pb(883) '<>' operator is not allowed for source level below 1.7
    Compile Error! Pb(883) '<>' operator is not allowed for source level below 1.7
    Compile Error! Pb(883) '<>' operator is not allowed for source level below 1.7

That file looks like this on my machine: ComponentApiaristIndexerInventory.java

This seems to be caused by the unusual SpeciesList class defined in the switch statement. I moved this class out so that it is a public static class and the build worked.

boq commented 7 years ago

Also #16 duplicate. #17 for proposed fix, though I never got any comments on that

mezz commented 7 years ago

Thanks. @AbrarSyed helped me debug this so hopefully he has a chance look over the proposed fix soon. If he's not free I'll bug Lex about it.