Wrote /root/JavaX-Caches/tmp_1593548454/main.java - 727 bytes (written=727, should be 727) 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_521591059 /root/JavaX-Caches/tmp_1593548454/main.java [Compilation Error]

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

main$JavaCompileException: ECJ returned errors. Annotation processing got disabled, since it requires a 1.6 compliant JVM ---------- 1. ERROR in /root/JavaX-Caches/tmp_1593548454/main.java (at line 1) sclass SingleComponentPanel extends JPanel { ^^^^^^ Syntax error on token "sclass", class expected ---------- 2. ERROR in /root/JavaX-Caches/tmp_1593548454/main.java (at line 2) *() { super(new BorderLayout); } ^ Syntax error on token "*", Identifier expected ---------- 3. ERROR in /root/JavaX-Caches/tmp_1593548454/main.java (at line 2) *() { super(new BorderLayout); } ^^^^^^^^^^^^ Syntax error, insert "( )" to complete ArgumentList ---------- 4. ERROR in /root/JavaX-Caches/tmp_1593548454/main.java (at line 4) *(Component component) { ^ Syntax error on token "*", Identifier expected ---------- 5. ERROR in /root/JavaX-Caches/tmp_1593548454/main.java (at line 10) swing { ^^^^^ Syntax error, insert "VariableDeclarators" to complete LocalVariableDeclaration ---------- 6. ERROR in /root/JavaX-Caches/tmp_1593548454/main.java (at line 10) swing { ^^^^^ Syntax error, insert ";" to complete BlockStatements ---------- 7. ERROR in /root/JavaX-Caches/tmp_1593548454/main.java (at line 27) ret getComponentCount() == 0 ? null : getComponent(0); ^^^ Syntax error on token "ret", return expected ---------- 7 problems (7 errors) Options file: /tmp/javax1365105259358828490