Wrote /root/JavaX-Caches/tmp_1337911174/main.java - 638 bytes (written=638, should be 638) javac=0, ecj=1 Checking ECJ at port 4898 at 127.0.0.1 ecj -source 1.8 -target 1.8 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar -d /root/JavaX-Caches/tmp_1698371638 /root/JavaX-Caches/tmp_1337911174/main.java [Compilation Error]

Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.

main$JavaCompileException: ECJ returned errors. ---------- 1. ERROR in /root/JavaX-Caches/tmp_1337911174/main.java (at line 1) static FileOutputStream newFileOutputStream(File path) throws IOException { ^^^^^^^^^^^^^^^^ Syntax error on token "FileOutputStream", @ expected ---------- 2. ERROR in /root/JavaX-Caches/tmp_1337911174/main.java (at line 1) static FileOutputStream newFileOutputStream(File path) throws IOException { ^^^^ Syntax error on token(s), misplaced construct(s) ---------- 3. ERROR in /root/JavaX-Caches/tmp_1337911174/main.java (at line 1) static FileOutputStream newFileOutputStream(File path) throws IOException { ^^^^^^ Syntax error on token "throws", interface expected ---------- 4. ERROR in /root/JavaX-Caches/tmp_1337911174/main.java (at line 2) ret newFileOutputStream(path.getPath()); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on token(s), misplaced construct(s) ---------- 5. ERROR in /root/JavaX-Caches/tmp_1337911174/main.java (at line 2) ret newFileOutputStream(path.getPath()); ^ Syntax error on token ")", { expected ---------- 6. ERROR in /root/JavaX-Caches/tmp_1337911174/main.java (at line 6) ret newFileOutputStream(path, false); ^^^ Syntax error, insert "VariableDeclarators" to complete LocalVariableDeclaration ---------- 7. ERROR in /root/JavaX-Caches/tmp_1337911174/main.java (at line 6) ret newFileOutputStream(path, false); ^^^ Syntax error, insert ";" to complete BlockStatements ---------- 8. ERROR in /root/JavaX-Caches/tmp_1337911174/main.java (at line 10) ret newFileOutputStream(path.getPath(), append); ^^^ Syntax error, insert "VariableDeclarators" to complete LocalVariableDeclaration ---------- 9. ERROR in /root/JavaX-Caches/tmp_1337911174/main.java (at line 10) ret newFileOutputStream(path.getPath(), append); ^^^ Syntax error, insert ";" to complete BlockStatements ---------- 10. ERROR in /root/JavaX-Caches/tmp_1337911174/main.java (at line 16) ifndef LeanMode ^^^^^^^^ Syntax error, insert ";" to complete LocalVariableDeclarationStatement ---------- 11. ERROR in /root/JavaX-Caches/tmp_1337911174/main.java (at line 18) endifndef ^^^^^^^^^ Syntax error on token "endifndef", } expected ---------- 11 problems (11 errors) Options file: /tmp/javax3843711528274102586