Wrote /root/JavaX-Caches/tmp_1271910272/main.java - 2233 bytes (written=2233, should be 2233) 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_197463308 /root/JavaX-Caches/tmp_1271910272/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_1271910272/main.java (at line 1) scope componentPopupMenu. ^^^^^ Syntax error on token "scope", module expected ---------- 2. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 1) scope componentPopupMenu.\r \r static ThreadLocal<MouseEvent> #mouseEvent; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, ClassHeaderName expected instead ---------- 3. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 1) scope componentPopupMenu.\r \r static ThreadLocal<MouseEvent> #mouseEvent;\r \r svoid componentPopupMenu_init { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, EnumHeader expected instead ---------- 4. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 6) swing { ^ Syntax error on token "{", { expected after this token ---------- 5. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 8) mouseEvent = (ThreadLocal<MouseEvent>) vm_generalMap_get('mouseEvent); ^^ Invalid character constant ---------- 6. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 10) vm_generalMap_put(componentPopupMenu_mouseEvent := mouseEvent = new ThreadLocal); ^ Syntax error on token ":", delete this token ---------- 7. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 10) vm_generalMap_put(componentPopupMenu_mouseEvent := mouseEvent = new ThreadLocal); ^^^^^^^^^^^ Syntax error, insert "( )" to complete Expression ---------- 8. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 12) } ^ Syntax error on token "}", ; expected after this token ---------- 9. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 16) if (component == null || menuMaker == null) ret; ^^^ Syntax error, insert ":: IdentifierOrNew" to complete ReferenceExpression ---------- 10. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 16) if (component == null || menuMaker == null) ret; ^^^ Syntax error, insert "AssignmentOperator Expression" to complete Expression ---------- 11. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 17) swing { ^^^^^ Syntax error, insert "VariableDeclarators" to complete LocalVariableDeclaration ---------- 12. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 17) swing { ^^^^^ Syntax error, insert ";" to complete LocalVariableDeclarationStatement ---------- 13. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 24) ret component == null ? null : swing(func { ^^^ Syntax error on token "ret", return expected ---------- 14. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 24) ret component == null ? null : swing(func { ^^^^ Syntax error, insert ")" to complete MethodInvocation ---------- 15. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 24) ret component == null ? null : swing(func { ^^^^ Syntax error, insert ";" to complete BlockStatements ---------- 16. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 28) new componentPopupMenu_Adapter a; ^^^ Syntax error on token "new", delete this token ---------- 17. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 33) }); ^ Syntax error on token ")", delete this token ---------- 18. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 36) sclass componentPopupMenu_Adapter extends MouseAdapter { ^^^^^^ Syntax error on token "sclass", class expected ---------- 19. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 37) new L maker; ^^^ Syntax error on token "new", delete this token ---------- 20. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 56) if (e.getSource() instanceof JInternalFrame) ret; ^^^ Syntax error, insert ":: IdentifierOrNew" to complete ReferenceExpression ---------- 21. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 56) if (e.getSource() instanceof JInternalFrame) ret; ^^^ Syntax error, insert "AssignmentOperator Expression" to complete Expression ---------- 22. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 61) new JPopupMenu menu; ^^^ Syntax error on token "new", } expected ---------- 23. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 64) temp tempSetTL(mouseEvent, e); ^ Syntax error on token ",", delete this token ---------- 24. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 64) temp tempSetTL(mouseEvent, e); ^ Syntax error on token ";", { expected after this token ---------- 25. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 76) end scope ^^^^^ Syntax error, insert ";" to complete FieldDeclaration ---------- 26. ERROR in /root/JavaX-Caches/tmp_1271910272/main.java (at line 76) end scope ^^^^^ Syntax error, insert "}" to complete EnumBody ---------- 26 problems (26 errors) Options file: /tmp/javax4226027996025504157