Cannot compile - "Overridden method does not throw IOException"
CruzBishop opened this issue ยท 8 comments
CarpentersBlocksCachedResources.java:84: error: getInputStreamByName(String) in DynamicFileResourcePack cannot override getInputStreamByName(String) in AbstractResourcePack
protected InputStream getInputStreamByName(String resourceName) throws IOException
^
overridden method does not throw IOException
This is probably a forge bug, but I'd better report it here just in case it isn't. I'm using Java 1.7 update 65 on Arch Linux 64-bit.
I've tried cleaning my gradle cache, and completely removing ~/.gradle
I'll have another go at getting it to work later, if I take a break it might become obvious
EDIT: I now get this
/home/cruzjbishop/Programming/CarpentersBlocks/build/sources/java/carpentersblocks/CarpentersBlocksCachedResources.java:83: error: getInputStreamByName(String) in DynamicFileResourcePack cannot override getInputStreamByName(String) in AbstractResourcePack
protected InputStream getInputStreamByName(String resourceName) throws IOException
^
overridden method does not throw IOException
/home/cruzjbishop/Programming/CarpentersBlocks/build/sources/java/carpentersblocks/CarpentersBlocksCachedResources.java:67: error: getPackImage() in FMLFileResourcePack cannot implement getPackImage() in IResourcePack
public static class DynamicFileResourcePack extends FMLFileResourcePack {
^
overridden method does not throw IOException
You might have more luck in the Forge forums as I don't understand Forge or Gradle at that level.
Not sure if it helps but I run "gradlew setupDecompWorkspace" when setting up the workspace.
Forge src build 964 is broken, use 965 and follow the instructions at http://terrafirmacraft.com/f/topic/5295-compiling-forge-965/ to get it installed.
Actually, I'm using what you have defined - 1180. I tried with 1187 as well, but no higher yet. Should I try 1199 / 1200?
Hmmm.. I had only ever encountered that error with build 964. Is this the first time you've set up the environment? Maybe clearing your gradle cache might help.. but I have no idea. I compile master against 1180.