[SPIGOT-2371] Impossible to access PlayerInfoData Created: 09/Jun/16  Updated: 19/Jun/16  Resolved: 09/Jun/16

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: zyuiop Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: 1.10, NMS
Environment:
zyuiop@aperture ~ $ uname -a
Linux aperture 4.6.1-2-ARCH #1 SMP PREEMPT Thu Jun 2 15:46:17 CEST 2016 x86_64 GNU/Linux
zyuiop@aperture ~ $ java -version
java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)
zyuiop@aperture ~ $ javac -version
javac 1.8.0_92
zyuiop@aperture ~ $ mvn -v
Apache Maven 3.3.9 (NON-CANONICAL_2015-11-23T13:17:27+03:00_root; 2015-11-23T11:17:27+01:00)
Maven home: /opt/maven
Java version: 1.8.0_92, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-jdk/jre
Default locale: fr_FR, platform encoding: UTF-8
OS name: "linux", version: "4.6.1-2-arch", arch: "amd64", family: "unix"


 Description   

Related to SPIGOT-2352

I can't compile any source code importing and/or using PacketPlayOutPlayerInfo.PlayerInfoData.

Simple test code : http://i.zyuiop.net/yDREQZMw.png
Error generated :

Error:(1, 61) java: cannot access net.minecraft.server.v1_10_R1.PacketPlayOutPlayerInfo.PlayerInfoData
  bad class file: /home/zyuiop/.m2/repository/fr/epicube/spigot/1.10-R0.1-SNAPSHOT/spigot-1.10-R0.1-SNAPSHOT.jar(net/minecraft/server/v1_10_R1/PacketPlayOutPlayerInfo$PlayerInfoData.class)
    bad RuntimeInvisibleParameterAnnotations attribute: PlayerInfoData(com.mojang.authlib.GameProfile,int,net.minecraft.server.v1_10_R1.EnumGamemode,net.minecraft.server.v1_10_R1.IChatBaseComponent)
    Please remove or make sure it appears in the correct subdirectory of the classpath.


 Comments   
Comment by Twister21 [ 19/Jun/16 ]

I got the same error with the new spigot 1.10 and IntelliJ IDEA Maven yesterday. Have you found a solution?

Comment by md_5 [ 09/Jun/16 ]

NMS code is taken directly from Mojang and not supported for use with Spigot.

Comment by zyuiop [ 09/Jun/16 ]

This bug doesn't happen when using eclipse-compiler
Not sure we can consider this as solved though, as javac should be able to compile without problems

Comment by zyuiop [ 09/Jun/16 ]

Tested with two builds produced by two different machines, always produces the same error.

Comment by zyuiop [ 09/Jun/16 ]

Affects version git-Spigot-da278d1-b2f31b7

Generated at Sat Dec 13 11:52:50 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.