mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 04:32:15 +00:00
Fix ASM SignatureReader choking on lambda signatures generated by JDT
This commit is contained in:
1 parent
741fdd0a85
commit
63798d6a8f
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