fix: broken module-info.class detection

This commit is contained in:
FalsePattern committed 2025-11-05 23:47:43 +01:00
1 parent 3acbfd41cc
commit 6777344f03
1 file changed
+1 -1
@@ -60,7 +60,7 @@ public class TypeDiscovererModuleInfoSilencer implements TurboClassTransformer {
if (insn instanceof LdcInsnNode) {
val ldc = (LdcInsnNode) insn;
if (ldc.cst.equals("[^\\s\\$]+(\\$[^\\s]+)?\\.class$")) {
ldc.cst = "(?!module-info)[^\\s\\$]+(\\$[^\\s]+)?\\.class$";
ldc.cst = "[^\\s\\$]+(?<!module-info)(\\$[^\\s]+)?\\.class$";
return true;
}
}