//noinspection RedundantCast
File compilePath = new File((String) intern("*compile-path*").value());
File classFile = new File(compilePath, file + ".class");
if (!(compilePath.mkdirs() || compilePath.isDirectory())) throw new IOException("could not make directory: " + compilePath);
try {
return compiler.load(classFile.getName().replaceAll(".class$", ".kl"), aClass);
} finally {
lines.clear();
if (compiler.bytes != null)
try (OutputStream out = new FileOutputStream(classFile)) {
out.write(compiler.bytes);