Wrote /root/JavaX-Caches/tmp_938319248/main.java - 276 bytes (written=276, should be 276) 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_1224283520 /root/JavaX-Caches/tmp_938319248/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_938319248/main.java (at line 1) static void componentPopupMenu_top(final JComponent component, final VF1<JPopupMenu> menuMaker) { ^^^^ Syntax error on token "void", @ expected ---------- 2. ERROR in /root/JavaX-Caches/tmp_938319248/main.java (at line 1) static void componentPopupMenu_top(final JComponent component, final VF1<JPopupMenu> menuMaker) { ^^^^^ Syntax error on token "final", @ expected ---------- 3. ERROR in /root/JavaX-Caches/tmp_938319248/main.java (at line 1) static void componentPopupMenu_top(final JComponent component, final VF1<JPopupMenu> menuMaker) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, ClassInstanceCreationExpressionName expected instead ---------- 4. ERROR in /root/JavaX-Caches/tmp_938319248/main.java (at line 1) static void componentPopupMenu_top(final JComponent component, final VF1<JPopupMenu> menuMaker) { ^ Syntax error on token ">", ( expected after this token ---------- 5. ERROR in /root/JavaX-Caches/tmp_938319248/main.java (at line 1) static void componentPopupMenu_top(final JComponent component, final VF1<JPopupMenu> menuMaker) { ^ Syntax error on token ")", { expected after this token ---------- 6. ERROR in /root/JavaX-Caches/tmp_938319248/main.java (at line 2) if (component != null && menuMaker != null) swing { ^^^^^ Syntax error, insert ":: IdentifierOrNew" to complete ReferenceExpression ---------- 7. ERROR in /root/JavaX-Caches/tmp_938319248/main.java (at line 2) if (component != null && menuMaker != null) swing { ^^^^^ Syntax error, insert "AssignmentOperator Expression" to complete Assignment ---------- 8. ERROR in /root/JavaX-Caches/tmp_938319248/main.java (at line 2) if (component != null && menuMaker != null) swing { ^^^^^ Syntax error, insert ";" to complete Statement ---------- 9. ERROR in /root/JavaX-Caches/tmp_938319248/main.java (at line 6) } ^ Syntax error, insert "}" to complete ClassBody ---------- 10. ERROR in /root/JavaX-Caches/tmp_938319248/main.java (at line 6) } ^ Syntax error, insert ")" to complete Modifier ---------- 11. ERROR in /root/JavaX-Caches/tmp_938319248/main.java (at line 6) } ^ Syntax error, insert "enum Identifier" to complete EnumHeader ---------- 12. ERROR in /root/JavaX-Caches/tmp_938319248/main.java (at line 6) } ^ Syntax error, insert "EnumBody" to complete CompilationUnit ---------- 12 problems (12 errors) Options file: /tmp/javax5140505487781088540