Skip to content

Commit dfd7f36

Browse files
committed
Fix IO content importing 'SKIP_FILTER' setting breaking expression compiler
1 parent a58c6ad commit dfd7f36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

recaf-core/src/main/java/software/coley/recaf/services/workspace/io/BasicInfoImporter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ private Info readClass(@Nonnull String name, @Nonnull byte[] data) throws Throwa
179179
// higher tier patch modes will occur when opening the class later. Users must accept this responsibility
180180
// if they want the boost in workspace load speeds.
181181
if (patchingMode == InfoImporterConfig.ClassPatchMode.SKIP_FILTER)
182-
return new JvmClassInfoBuilder(data, ClassReader.SKIP_CODE).build();
182+
// We still do not use 'SKIP_CODE' since we want the info models to have things like variable metadata.
183+
return new JvmClassInfoBuilder(data, 0).build();
183184

184185
// If we're always validating, patch the class and try and parse the patched output.
185186
// Any ASM parse failures imply patching has failed, and the class will be treated as a file instead (see catch block in calling methods)

0 commit comments

Comments
 (0)