These are the defaults, actually

This commit is contained in:
Victorious3 2023-01-31 14:25:37 +01:00
parent baec9999db
commit 21fb477ee1

View File

@ -31,7 +31,7 @@ public class TestCodegen {
private static void writeClassFile(String name, byte[] code) throws IOException {
var path = Path.of(System.getProperty("user.dir"), "src/test/resources/target/");
Files.createDirectories(path);
Files.write(path.resolve(name + ".class"), code, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING);
Files.write(path.resolve(name + ".class"), code);
}
public static Class<?> generateClass(TargetClass clazz, IByteArrayClassLoader classLoader) throws IOException {