mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 19:59:42 +00:00
Merge pull request #2423 from Mumfrey/fix/jdt
Fix ASM SignatureReader choking on invalid lambda local var signatures emitted by JDT
This commit is contained in:
commit
8af1624f9e
1 file changed
+11
+11
@@ -313,6 +313,17 @@ public class FMLDeobfuscatingRemapper extends Remapper {
|
||||
String methodDescriptor = name+desc;
|
||||
return methodMap!=null && methodMap.containsKey(methodDescriptor) ? methodMap.get(methodDescriptor) : name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String mapSignature(String signature, boolean typeSignature)
|
||||
{
|
||||
// JDT decorates some lambdas with this and SignatureReader chokes on it
|
||||
if (signature != null && signature.contains("!*"))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return super.mapSignature(signature, typeSignature);
|
||||
}
|
||||
|
||||
private Map<String,String> getFieldMap(String className)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user