Wrote /tmp/tmp_1277756658/main.java - 400 bytes (written=400, should be 400) 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 -d /tmp/tmp_1063158909 /tmp/tmp_1277756658/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_1277756658/main.java (at line 1) static <A extends JComponent> A setFontSize(final float size, final A a) { ^^^^^^ Syntax error, insert "interface Identifier" to complete InterfaceHeaderName ---------- 2. ERROR in /tmp/tmp_1277756658/main.java (at line 1) static <A extends JComponent> A setFontSize(final float size, final A a) { ^ Syntax error on token ">", { expected after this token ---------- 3. ERROR in /tmp/tmp_1277756658/main.java (at line 2) if (a == null) ret a; ^^^ Syntax error on token "ret", return expected ---------- 4. ERROR in /tmp/tmp_1277756658/main.java (at line 3) swing { ^^^^^ Syntax error, insert "VariableDeclarators" to complete LocalVariableDeclaration ---------- 5. ERROR in /tmp/tmp_1277756658/main.java (at line 3) swing { ^^^^^ Syntax error, insert ";" to complete LocalVariableDeclarationStatement ---------- 6. ERROR in /tmp/tmp_1277756658/main.java (at line 13) ret setFontSize(size, a); ^^^ Syntax error, insert "VariableDeclarators" to complete LocalVariableDeclaration ---------- 7. ERROR in /tmp/tmp_1277756658/main.java (at line 13) ret setFontSize(size, a); ^^^ Syntax error, insert ";" to complete BlockStatements ---------- 8. ERROR in /tmp/tmp_1277756658/main.java (at line 14) } ^ Syntax error, insert "}" to complete InterfaceBody ---------- 8 problems (8 errors) Options file: /tmp/javax8658420461343104799