Wrote /root/JavaX-Caches/tmp_1231390141/main.java - 165 bytes (written=165, should be 165) 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_1653113705 /root/JavaX-Caches/tmp_1231390141/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_1231390141/main.java (at line 1) static long web_countNodes(Collection<Web> webs) { ^^^^ Syntax error on token "long", @ expected ---------- 2. ERROR in /root/JavaX-Caches/tmp_1231390141/main.java (at line 1) static long web_countNodes(Collection<Web> webs) { ^ Syntax error on token ">", >= expected ---------- 3. ERROR in /root/JavaX-Caches/tmp_1231390141/main.java (at line 1) static long web_countNodes(Collection<Web> webs) { ^ Syntax error, insert "RestrictedIdentifierrecord Identifier" to complete RecordHeaderName ---------- 4. ERROR in /root/JavaX-Caches/tmp_1231390141/main.java (at line 1) static long web_countNodes(Collection<Web> webs) { ^ Syntax error, insert "RecordHeader" to complete RecordHeaderPart ---------- 5. ERROR in /root/JavaX-Caches/tmp_1231390141/main.java (at line 1) static long web_countNodes(Collection<Web> webs) {\r long n = 0;\r if (webs != null)\r for (Web web : webs) n += l(web_nodesWithoutRelations(web));\r ret n; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, delete these tokens ---------- 6. ERROR in /root/JavaX-Caches/tmp_1231390141/main.java (at line 3) if (webs != null) ^^ Syntax error on token "if", Identifier expected ---------- 7. ERROR in /root/JavaX-Caches/tmp_1231390141/main.java (at line 3) if (webs != null)\r for (Web web : webs) n += l(web_nodesWithoutRelations(web)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, AnnotationName expected instead ---------- 8. ERROR in /root/JavaX-Caches/tmp_1231390141/main.java (at line 4) for (Web web : webs) n += l(web_nodesWithoutRelations(web)); ^ Syntax error on token ";", delete this token ---------- 9. ERROR in /root/JavaX-Caches/tmp_1231390141/main.java (at line 5) ret n; ^^^ Syntax error, insert "... VariableDeclaratorId" to complete FormalParameter ---------- 10. ERROR in /root/JavaX-Caches/tmp_1231390141/main.java (at line 5) ret n; ^^^ Syntax error, insert ")" to complete ConstructorDeclaration ---------- 11. ERROR in /root/JavaX-Caches/tmp_1231390141/main.java (at line 5) ret n; ^^^ Syntax error, insert ";" to complete RecordBodyDeclaration ---------- 12. ERROR in /root/JavaX-Caches/tmp_1231390141/main.java (at line 5) ret n; ^ Syntax error, insert "RecordBody" to complete CompilationUnit ---------- 12 problems (12 errors) Options file: /tmp/javax14573851999020882092