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 changed files with 11 additions and 0 deletions
|
@ -314,6 +314,17 @@ public class FMLDeobfuscatingRemapper extends Remapper {
|
|||
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)
|
||||
{
|
||||
if (!fieldNameMaps.containsKey(className) && !negativeCacheFields.contains(className))
|
||||
|
|
Loading…
Reference in a new issue