Wrote /root/JavaX-Caches/tmp_419005159/main.java - 148 bytes (written=148, should be 148) 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_1860602283 /root/JavaX-Caches/tmp_419005159/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_419005159/main.java (at line 1) static S lineAtCaret(JTextComponent tc) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on token(s), misplaced construct(s) ---------- 2. ERROR in /root/JavaX-Caches/tmp_419005159/main.java (at line 1) static S lineAtCaret(JTextComponent tc) { ^ Syntax error on token "S", @ expected ---------- 3. ERROR in /root/JavaX-Caches/tmp_419005159/main.java (at line 1) static S lineAtCaret(JTextComponent tc) { ^^^^^^^^^^^^^^ Syntax error on token(s), misplaced construct(s) ---------- 4. ERROR in /root/JavaX-Caches/tmp_419005159/main.java (at line 2) Pair<S, Int> p = textAndCaretPosition(tc); ^ Syntax error on token ";", instanceof expected ---------- 5. ERROR in /root/JavaX-Caches/tmp_419005159/main.java (at line 3) ret getLine(p.a, charIndexToUserLandLineNr(p.a, p.b)); ^^^ Syntax error on token "ret", | expected after this token ---------- 6. ERROR in /root/JavaX-Caches/tmp_419005159/main.java (at line 4) } ^ Syntax error on token "}", delete this token ---------- 6 problems (6 errors) Options file: /tmp/javax13921869781558291895