MinecraftCoderPack Error on Decompilation

Discussion in 'Programming' started by Obamasaurusrex, May 26, 2018.

  1. I am running MCP 918 on Mac OSX High Sierra. When I run decompile.sh, however, it fails at the recompile section with this error:
    Code (Text):
    > Recompiling
    '"javac" -Xlint:-options -deprecation -g -source 1.6 -target 1.6 -classpath "jars/versions/1.8.8/1.8.8.jar:lib:lib/*:jars/libraries/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar:jars/libraries/org/lwjgl/lwjgl/lwjgl-platform/2.9.2-nightly-20140822/lwjgl-platform-2.9.2-nightly-20140822-natives-osx.jar:jars/libraries/com/ibm/icu/icu4j-core-mojang/51.2/icu4j-core-mojang-51.2.jar:jars/libraries/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar:jars/libraries/org/apache/logging/log4j/log4j-api/2.0-beta9/log4j-api-2.0-beta9.jar:jars/libraries/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.jar:jars/libraries/net/java/dev/jna/jna/3.4.0/jna-3.4.0.jar:jars/libraries/com/paulscode/libraryjavasound/20101123/libraryjavasound-20101123.jar:jars/libraries/net/sf/jopt-simple/jopt-simple/4.6/jopt-simple-4.6.jar:jars/libraries/com/google/guava/guava/17.0/guava-17.0.jar:jars/libraries/oshi-project/oshi-core/1.1/oshi-core-1.1.jar:jars/libraries/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar:jars/libraries/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar:jars/libraries/net/java/dev/jna/platform/3.4.0/platform-3.4.0.jar:jars/libraries/com/paulscode/codecjorbis/20101023/codecjorbis-20101023.jar:jars/libraries/com/paulscode/soundsystem/20120107/soundsystem-20120107.jar:jars/libraries/com/paulscode/librarylwjglopenal/20100824/librarylwjglopenal-20100824.jar:jars/libraries/org/lwjgl/lwjgl/lwjgl_util/2.9.2-nightly-20140822/lwjgl_util-2.9.2-nightly-20140822.jar:jars/libraries/commons-codec/commons-codec/1.9/commons-codec-1.9.jar:jars/libraries/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar:jars/libraries/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:jars/libraries/org/lwjgl/lwjgl/lwjgl/2.9.2-nightly-20140822/lwjgl-2.9.2-nightly-20140822.jar:jars/libraries/commons-io/commons-io/2.4/commons-io-2.4.jar:jars/libraries/com/mojang/realms/1.7.39/realms-1.7.39.jar:jars/libraries/com/mojang/authlib/1.5.21/authlib-1.5.21.jar:jars/libraries/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar:jars/libraries/com/mojang/netty/1.6/netty-1.6.jar:jars/libraries/tv/twitch/twitch/6.5/twitch-6.5.jar:jars/libraries/com/paulscode/codecwav/20101023/codecwav-20101023.jar:jars/libraries/tv/twitch/twitch-platform/6.5/twitch-platform-6.5-natives-osx.jar:jars/libraries/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-osx.jar:jars/libraries/org/apache/logging/log4j/log4j-core/2.0-beta9/log4j-core-2.0-beta9.jar:jars/libraries/io/netty/netty-all/4.0.23.Final/netty-all-4.0.23.Final.jar" -sourcepath src/minecraft -d bin/minecraft @temp/java_src_client.txt' failed : 1

    == ERRORS FOUND in JAVA CODE ==

    src/minecraft/net/minecraft/network/NetHandlerPlayServer.java:445: error: incompatible types: Set<Object> cannot be converted to Set<EnumFlags>
            this.setPlayerLocation(x, y, z, yaw, pitch, Collections.emptySet());
                                                                            ^

    src/minecraft/net/minecraft/tileentity/TileEntity.java:108: warning: [deprecation] newInstance() in Class has been deprecated
                    tileentity = (TileEntity)oclass.newInstance();
                                                   ^

      where T is a type-variable:
        T extends Object declared in class Class
    src/minecraft/net/minecraft/inventory/Container.java:39: error: no suitable method found for add(Object)
            this.inventoryItemStacks.add((Object)null);
                                    ^

        method Collection.add(ItemStack) is not applicable
          (argument mismatch; Object cannot be converted to ItemStack)
        method List.add(ItemStack) is not applicable
          (argument mismatch; Object cannot be converted to ItemStack)
    src/minecraft/net/minecraft/network/NetworkSystem.java:78: error: incompatible types: List<Object> cannot be converted to List<ChannelFuture>
        private final List<ChannelFuture> endpoints = Collections.synchronizedList(Lists.newArrayList());
                                                                                  ^

    src/minecraft/net/minecraft/network/NetworkSystem.java:79: error: incompatible types: List<Object> cannot be converted to List<NetworkManager>
        private final List<NetworkManager> networkManagers = Collections.synchronizedList(Lists.newArrayList());
                                                                                         ^

    src/minecraft/net/minecraft/network/EnumConnectionState.java:291: warning: [deprecation] newInstance() in Class has been deprecated
            return oclass == null ? null : (Packet)oclass.newInstance();
                                                         ^

      where T is a type-variable:
        T extends Object declared in class Class
    src/minecraft/net/minecraft/network/EnumConnectionState.java:332: warning: [deprecation] newInstance() in Class has been deprecated
                            oclass.newInstance();
                                  ^

      where T is a type-variable:
        T extends Object declared in class Class
    src/minecraft/net/minecraft/util/ObjectIntIdentityMap.java:21: error: no suitable method found for add(Object)
                this.objectList.add((Object)null);
                               ^

        method Collection.add(T) is not applicable
          (argument mismatch; Object cannot be converted to T)
        method List.add(T) is not applicable
          (argument mismatch; Object cannot be converted to T)
      where T is a type-variable:
        T extends Object declared in class ObjectIntIdentityMap
    src/minecraft/net/minecraft/client/Minecraft.java:803: error: incompatible types: List<Object> cannot be converted to List<ResourcePackRepository.Entry>
                this.mcResourcePackRepository.setRepositories(Collections.emptyList());
                                                                                   ^

    src/minecraft/net/minecraft/client/renderer/texture/TextureAtlasSprite.java:382: error: no suitable method found for add(Object)
                    this.framesTextureData.add((Object)null);
                                          ^

        method Collection.add(int[][]) is not applicable
          (argument mismatch; Object cannot be converted to int[][])
        method List.add(int[][]) is not applicable
          (argument mismatch; Object cannot be converted to int[][])
    src/minecraft/net/minecraft/util/Cartesian.java:56: error: incompatible types: List<Object> cannot be converted to List<T>
                return Arrays.asList((Object[])p_apply_1_);
                                    ^

      where T is a type-variable:
        T extends Object declared in class GetList
    src/minecraft/net/minecraft/entity/item/EntityMinecart.java:97: warning: [deprecation] Integer(int) in Integer has been deprecated
            this.dataWatcher.addObject(17, new Integer(0));
                                           ^

    src/minecraft/net/minecraft/entity/item/EntityMinecart.java:98: warning: [deprecation] Integer(int) in Integer has been deprecated
            this.dataWatcher.addObject(18, new Integer(1));
                                           ^

    src/minecraft/net/minecraft/entity/item/EntityMinecart.java:99: warning: [deprecation] Float(float) in Float has been deprecated
            this.dataWatcher.addObject(19, new Float(0.0F));
                                           ^

    src/minecraft/net/minecraft/entity/item/EntityMinecart.java:100: warning: [deprecation] Integer(int) in Integer has been deprecated
            this.dataWatcher.addObject(20, new Integer(0));
                                           ^

    src/minecraft/net/minecraft/entity/item/EntityMinecart.java:101: warning: [deprecation] Integer(int) in Integer has been deprecated
            this.dataWatcher.addObject(21, new Integer(6));
                                           ^

    src/minecraft/net/minecraft/entity/boss/EntityWither.java:79: warning: [deprecation] Integer(int) in Integer has been deprecated
            this.dataWatcher.addObject(17, new Integer(0));
                                           ^

    src/minecraft/net/minecraft/entity/boss/EntityWither.java:80: warning: [deprecation] Integer(int) in Integer has been deprecated
            this.dataWatcher.addObject(18, new Integer(0));
                                           ^

    src/minecraft/net/minecraft/entity/boss/EntityWither.java:81: warning: [deprecation] Integer(int) in Integer has been deprecated
            this.dataWatcher.addObject(19, new Integer(0));
                                           ^

    src/minecraft/net/minecraft/entity/boss/EntityWither.java:82: warning: [deprecation] Integer(int) in Integer has been deprecated
            this.dataWatcher.addObject(20, new Integer(0));
                                           ^

    src/minecraft/net/minecraft/entity/passive/EntityBat.java:29: warning: [deprecation] Byte(byte) in Byte has been deprecated
            this.dataWatcher.addObject(16, new Byte((byte)0));
                                           ^

    src/minecraft/net/minecraft/entity/passive/EntityWolf.java:131: warning: [deprecation] Float(float) in Float has been deprecated
            this.dataWatcher.addObject(18, new Float(this.getHealth()));
                                           ^

    src/minecraft/net/minecraft/entity/passive/EntityWolf.java:132: warning: [deprecation] Byte(byte) in Byte has been deprecated
            this.dataWatcher.addObject(19, new Byte((byte)0));
                                           ^

    src/minecraft/net/minecraft/entity/passive/EntityWolf.java:133: warning: [deprecation] Byte(byte) in Byte has been deprecated
            this.dataWatcher.addObject(20, new Byte((byte)EnumDyeColor.RED.getMetadata()));
                                           ^

    src/minecraft/net/minecraft/entity/passive/EntitySheep.java:111: warning: [deprecation] Byte(byte) in Byte has been deprecated
            this.dataWatcher.addObject(16, new Byte((byte)0));
                                           ^

    src/minecraft/net/minecraft/entity/item/EntityBoat.java:56: warning: [deprecation] Integer(int) in Integer has been deprecated
            this.dataWatcher.addObject(17, new Integer(0));
                                           ^

    src/minecraft/net/minecraft/entity/item/EntityBoat.java:57: warning: [deprecation] Integer(int) in Integer has been deprecated
            this.dataWatcher.addObject(18, new Integer(1));
                                           ^

    src/minecraft/net/minecraft/entity/item/EntityBoat.java:58: warning: [deprecation] Float(float) in Float has been deprecated
            this.dataWatcher.addObject(19, new Float(0.0F));
                                           ^

    src/minecraft/net/minecraft/entity/item/EntityMinecartFurnace.java:41: warning: [deprecation] Byte(byte) in Byte has been deprecated
            this.dataWatcher.addObject(16, new Byte((byte)0));
                                           ^

    src/minecraft/net/minecraft/entity/ai/attributes/ModifiableAttributeInstance.java:33: error: incompatible types: HashSet<Object> cannot be converted to Set<AttributeModifier>
                this.mapByOperation.put(Integer.valueOf(i), Sets.newHashSet());
                                                                           ^

    src/minecraft/net/minecraft/entity/monster/EntityEnderman.java:84: warning: [deprecation] Short(short) in Short has been deprecated
            this.dataWatcher.addObject(16, new Short((short)0));
                                           ^

    src/minecraft/net/minecraft/entity/monster/EntityEnderman.java:85: warning: [deprecation] Byte(byte) in Byte has been deprecated
            this.dataWatcher.addObject(17, new Byte((byte)0));
                                           ^

    src/minecraft/net/minecraft/entity/monster/EntityEnderman.java:86: warning: [deprecation] Byte(byte) in Byte has been deprecated
            this.dataWatcher.addObject(18, new Byte((byte)0));
                                           ^

    src/minecraft/net/minecraft/entity/monster/EntitySpider.java:67: warning: [deprecation] Byte(byte) in Byte has been deprecated
            this.dataWatcher.addObject(16, new Byte((byte)0));
                                           ^

    src/minecraft/net/minecraft/entity/monster/EntityBlaze.java:55: warning: [deprecation] Byte(byte) in Byte has been deprecated
            this.dataWatcher.addObject(16, new Byte((byte)0));
                                           ^

    src/minecraft/net/minecraft/entity/monster/EntitySkeleton.java:76: warning: [deprecation] Byte(byte) in Byte has been deprecated
            this.dataWatcher.addObject(13, new Byte((byte)0));
                                           ^

    src/minecraft/net/minecraft/world/gen/FlatGeneratorInfo.java:300: error: incompatible types: HashMap<Object,Object> cannot be converted to Map<String,String>
                            flatgeneratorinfo.getWorldFeatures().put("village", Maps.newHashMap());
                                                                                               ^

    src/minecraft/net/minecraft/world/gen/FlatGeneratorInfo.java:325: error: incompatible types: HashMap<Object,Object> cannot be converted to Map<String,String>
            flatgeneratorinfo.getWorldFeatures().put("village", Maps.newHashMap());
                                                                               ^

    src/minecraft/net/minecraft/world/gen/structure/MapGenStructureIO.java:50: warning: [deprecation] newInstance() in Class has been deprecated
                    structurestart = (StructureStart)oclass.newInstance();
                                                           ^

      where T is a type-variable:
        T extends Object declared in class Class
    src/minecraft/net/minecraft/world/gen/structure/MapGenStructureIO.java:81: warning: [deprecation] newInstance() in Class has been deprecated
                    structurecomponent = (StructureComponent)oclass.newInstance();
                                                                   ^

      where T is a type-variable:
        T extends Object declared in class Class
    src/minecraft/net/minecraft/world/storage/ThreadedFileIOBase.java:11: error: incompatible types: List<Object> cannot be converted to List<IThreadedFileIO>
        private List<IThreadedFileIO> threadedIOQueue = Collections.synchronizedList(Lists.newArrayList());
                                                                                    ^

    src/minecraft/net/minecraft/client/gui/GuiScreenRealmsProxy.java:18: error: incompatible types: List<Object> cannot be converted to List<GuiButton>
            super.buttonList = Collections.synchronizedList(Lists.newArrayList());
                                                           ^

    src/minecraft/net/minecraft/realms/RealmsServerStatusPinger.java:28: error: incompatible types: List<Object> cannot be converted to List<NetworkManager>
        private final List<NetworkManager> connections = Collections.synchronizedList(Lists.newArrayList());
                                                                                     ^

    src/minecraft/net/minecraft/command/CommandSpreadPlayers.java:138: error: no suitable method found for add(Object)
                    set.add((Object)null);
                       ^

        method Collection.add(Team) is not applicable
          (argument mismatch; Object cannot be converted to Team)
        method Set.add(Team) is not applicable
          (argument mismatch; Object cannot be converted to Team)
    src/minecraft/net/minecraft/client/renderer/block/model/ModelBlock.java:55: error: incompatible types: List<Object> cannot be converted to List<BlockPart>
            this(p_i46226_1_, Collections.emptyList(), p_i46226_2_, p_i46226_3_, p_i46226_4_, p_i46226_5_);
                                                   ^

    src/minecraft/net/minecraft/client/resources/FileResourcePack.java:108: warning: [deprecation] finalize() in Object has been deprecated
        protected void finalize() throws Throwable
                       ^

    src/minecraft/net/minecraft/client/resources/FileResourcePack.java:111: warning: [deprecation] finalize() in Object has been deprecated
            super.finalize();
                 ^

    src/minecraft/net/minecraft/client/resources/FolderResourcePack.java:36: error: reference to listFiles is ambiguous
                for (File file2 : file1.listFiles(DirectoryFileFilter.DIRECTORY))
                                       ^

      both method listFiles(FilenameFilter) in File and method listFiles(FileFilter) in File match
    src/minecraft/net/minecraft/client/resources/FallbackResourceManager.java:122: warning: [deprecation] finalize() in Object has been deprecated
            protected void finalize() throws Throwable
                           ^

    src/minecraft/net/minecraft/client/resources/FallbackResourceManager.java:129: warning: [deprecation] finalize() in Object has been deprecated
                super.finalize();
                     ^

    src/minecraft/net/minecraft/client/resources/model/SimpleBakedModel.java:116: error: no suitable method found for add(ArrayList<Object>)
                    this.builderFaceQuads.add(Lists.newArrayList());
                                         ^

        method Collection.add(List<BakedQuad>) is not applicable
          (argument mismatch; ArrayList<Object> cannot be converted to List<BakedQuad>)
        method List.add(List<BakedQuad>) is not applicable
          (argument mismatch; ArrayList<Object> cannot be converted to List<BakedQuad>)
    src/minecraft/net/minecraft/client/network/OldServerPinger.java:50: error: incompatible types: List<Object> cannot be converted to List<NetworkManager>
        private final List<NetworkManager> pingDestinations = Collections.synchronizedList(Lists.newArrayList());
                                                                                          ^

    src/minecraft/net/minecraft/client/gui/GuiFlatPresets.java:176: error: incompatible types: HashMap<Object,Object> cannot be converted to Map<String,String>
                    flatgeneratorinfo.getWorldFeatures().put(s, Maps.newHashMap());
                                                                               ^

    src/minecraft/net/minecraft/block/BlockRedstoneTorch.java:27: error: incompatible types: ArrayList<Object> cannot be converted to List<Toggle>
                toggles.put(worldIn, Lists.newArrayList());
                                                       ^

    src/minecraft/net/minecraft/block/state/pattern/FactoryBlockPattern.java:26: error: incompatible types: Predicate<Object> cannot be converted to Predicate<BlockWorldState>
            this.symbolMap.put(' ', Predicates.alwaysTrue());
                                                         ^

    src/minecraft/net/minecraft/block/state/pattern/FactoryBlockPattern.java:56: error: incompatible types: Object cannot be converted to Predicate<BlockWorldState>
                                this.symbolMap.put(Character.valueOf(c0), (Object)null);
                                                                          ^

    23 errors
    33 warnings
    ==================

    Initial client recompile failed, correct source then run updatemd5
    I was wondering if someone could help me pinpoint the issue and suggest a solution?
     
  2. Sorry for the bump, but have you found the issue regarding this? I have the exact same problem.
     
  3. Use an earlier version of JDK, I believe JDK 6 worked
     
    • Winner Winner x 1