Open jpenilla opened 3 years ago
I assume you have Xlint:all or something as I've never seen that warning.
As a workaround you can use --kill-source to remove the SourceFile attribute or disable that specific warning in javac (-Xlint:-auxiliaryclass
).
BuildTools is the one running SpecialSource in this case, otherwise I would have used --kill-source
.
For my own projects I can disable the warning, sure, but I think it would be a better solution to either remap the attribute in SpecialSource, or to have BuildTools pass the argument to strip the attribute when building Spigot, this way Spigot jars won't have invalid metadata.
When compiling against Spigot's Mojang-mapped jar, I was getting tons of warnings about auxiliary classes:
Upon further inspection, I noticed that this is due to SpecialSource not remapping the SourceFile attribute at all.
This can bee seen by unzipping the Mojang-mapped Spigot jar from BuildTools, and running
javap -v
on any class file edited by Spigot or CraftBukkit, for example,ServerPlayer
(EntityPlayer
in Spigot names):