ecj -source 1.7 -target 1.7 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar -d /tmp/tmp_369183456 /tmp/tmp_819528273/main.java [Compilation Error]

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

java.lang.RuntimeException: Java compiler returned errors. ---------- 1. ERROR in /tmp/tmp_819528273/main.java (at line 1) static void lockOrFail(Lock lock, long timeout) ctex { ^^^^ Syntax error on token "void", @ expected ---------- 2. ERROR in /tmp/tmp_819528273/main.java (at line 1) static void lockOrFail(Lock lock, long timeout) ctex { ^^^^ Syntax error on token "Lock", ( expected after this token ---------- 3. ERROR in /tmp/tmp_819528273/main.java (at line 1) static void lockOrFail(Lock lock, long timeout) ctex { ^^^^ Syntax error on token "long", invalid ( ---------- 4. ERROR in /tmp/tmp_819528273/main.java (at line 1) static void lockOrFail(Lock lock, long timeout) ctex { ^^^^ Syntax error, insert ")" to complete MethodInvocation ---------- 5. ERROR in /tmp/tmp_819528273/main.java (at line 1) static void lockOrFail(Lock lock, long timeout) ctex { ^^^^ Syntax error, insert ")" to complete SingleMemberAnnotation ---------- 6. ERROR in /tmp/tmp_819528273/main.java (at line 1) static void lockOrFail(Lock lock, long timeout) ctex { ^^^^ Syntax error, insert "enum Identifier" to complete EnumHeader ---------- 7. ERROR in /tmp/tmp_819528273/main.java (at line 2) ping(); ^ Syntax error on token ";", { expected after this token ---------- 8. ERROR in /tmp/tmp_819528273/main.java (at line 6) ReentrantLock l = cast lock; ^^^^ Syntax error on token "lock", delete this token ---------- 9. ERROR in /tmp/tmp_819528273/main.java (at line 12) } ^ Syntax error, insert "}" to complete EnumBody ---------- 9 problems (9 errors) Options file: /tmp/javax6484339711770313693