!759 p { S mainJava = [[ static S calc() { ret "Hello " + "World"; } ]]; print(mainJava); for (int i = 1; i <= 4; i++) { time { print("\nRun " + i); // transpile transpileRaw_silent = true; S java; time { java = transpileRaw(mainJava); } //print(java); // compile File classesDir = javaCompile(java); int num = numFiles_noDirs(classesDir); long size = directorySize(classesDir); print("Compiled to " + classesDir.getAbsolutePath() + " (" + n(num, "file") + ", " + n(size, "byte") + ")"); // hotwire Class main = hotwireCore(fileToURL(classesDir)); // call print("Hotwired! Now calling."); S s = cast call(main, "calc"); print("Called! Result: " + quote(s)); assertEquals("Hello World", s); }} }