Fix ASM SignatureReader choking on lambda signatures generated by JDT (#42)

This commit is contained in:
Mickeyxiami 2017-01-21 18:56:40 +08:00 committed by md-5
parent ae50d3187f
commit d8bf831e48

View File

@ -49,4 +49,13 @@ public abstract class CustomRemapper extends Remapper {
public String mapFieldName(String owner, String name, String desc, int access) {
return 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);
}
}