Wrote /root/JavaX-Caches/tmp_2048922399/main.java - 2930 bytes (written=2930, should be 2930) javac=0, ecj=1, useJarBot=0 Checking ECJ at port 4898 at 127.0.0.1 /root/jdk-17/bin/javac -source 11 -target 11 -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_376449247 /root/JavaX-Caches/tmp_2048922399/main.java 2>&1
[Compilation Error]

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

/root/JavaX-Caches/tmp_2048922399/main.java:5: error: class, interface, or enum expected sclass HTMLPopDownButton_v2 { ^ /root/JavaX-Caches/tmp_2048922399/main.java:7: error: class, interface, or enum expected int width = 200, height = 200; ^ /root/JavaX-Caches/tmp_2048922399/main.java:9: error: class, interface, or enum expected S id = "dropdown-" + aGlobalID(), outerID = "outer-" + id; ^ /root/JavaX-Caches/tmp_2048922399/main.java:11: error: class, interface, or enum expected *(S... entries) { this.entries = asList(entries); } ^ /root/JavaX-Caches/tmp_2048922399/main.java:11: error: class, interface, or enum expected *(S... entries) { this.entries = asList(entries); } ^ /root/JavaX-Caches/tmp_2048922399/main.java:14: error: class, interface, or enum expected void add(S entry) { main add(this.entries, entry); } ^ /root/JavaX-Caches/tmp_2048922399/main.java:15: error: class, interface, or enum expected void addAll(S... entries) { main addAll(this.entries, entries); } ^ /root/JavaX-Caches/tmp_2048922399/main.java:19: error: unclosed character literal if (typeof $ !== 'undefined') ^ /root/JavaX-Caches/tmp_2048922399/main.java:19: error: unclosed character literal if (typeof $ !== 'undefined') ^ /root/JavaX-Caches/tmp_2048922399/main.java:20: error: unclosed character literal $('body').click(function(e) { ^ /root/JavaX-Caches/tmp_2048922399/main.java:20: error: unclosed character literal $('body').click(function(e) { ^ /root/JavaX-Caches/tmp_2048922399/main.java:21: error: unclosed character literal if (!$(e.target).closest('.popdowntrigger').length) { ^ /root/JavaX-Caches/tmp_2048922399/main.java:21: error: unclosed character literal if (!$(e.target).closest('.popdowntrigger').length) { ^ /root/JavaX-Caches/tmp_2048922399/main.java:23: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2048922399/main.java:25: error: class, interface, or enum expected ]]; ^ /root/JavaX-Caches/tmp_2048922399/main.java:26: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2048922399/main.java:32: error: class, interface, or enum expected margin: 0; ^ /root/JavaX-Caches/tmp_2048922399/main.java:33: error: class, interface, or enum expected padding: 0; ^ /root/JavaX-Caches/tmp_2048922399/main.java:34: error: class, interface, or enum expected width: ]] + width + [[px; ^ /root/JavaX-Caches/tmp_2048922399/main.java:35: error: class, interface, or enum expected background-color: #f1f1f1; ^ /root/JavaX-Caches/tmp_2048922399/main.java:35: error: illegal character: '#' background-color: #f1f1f1; ^ /root/JavaX-Caches/tmp_2048922399/main.java:36: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2048922399/main.java:40: error: class, interface, or enum expected display:none; ^ /root/JavaX-Caches/tmp_2048922399/main.java:41: error: class, interface, or enum expected background-color: #f9f9f9; ^ /root/JavaX-Caches/tmp_2048922399/main.java:41: error: illegal character: '#' background-color: #f9f9f9; ^ /root/JavaX-Caches/tmp_2048922399/main.java:42: error: class, interface, or enum expected width:auto; ^ /root/JavaX-Caches/tmp_2048922399/main.java:43: error: class, interface, or enum expected height: ]] + height + [[px; ^ /root/JavaX-Caches/tmp_2048922399/main.java:44: error: class, interface, or enum expected overflow: auto; ^ /root/JavaX-Caches/tmp_2048922399/main.java:46: error: class, interface, or enum expected min-width: 160px; ^ /root/JavaX-Caches/tmp_2048922399/main.java:47: error: class, interface, or enum expected box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); ^ /root/JavaX-Caches/tmp_2048922399/main.java:49: error: class, interface, or enum expected z-index: 99; ^ /root/JavaX-Caches/tmp_2048922399/main.java:50: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2048922399/main.java:54: error: class, interface, or enum expected color: #000; ^ /root/JavaX-Caches/tmp_2048922399/main.java:54: error: illegal character: '#' color: #000; ^ /root/JavaX-Caches/tmp_2048922399/main.java:55: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2048922399/main.java:59: error: class, interface, or enum expected border-bottom: 1px solid #555; ^ /root/JavaX-Caches/tmp_2048922399/main.java:59: error: illegal character: '#' border-bottom: 1px solid #555; ^ /root/JavaX-Caches/tmp_2048922399/main.java:60: error: class, interface, or enum expected padding: 8px 16px; ^ /root/JavaX-Caches/tmp_2048922399/main.java:61: error: class, interface, or enum expected color: #000; ^ /root/JavaX-Caches/tmp_2048922399/main.java:61: error: illegal character: '#' color: #000; ^ /root/JavaX-Caches/tmp_2048922399/main.java:62: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2048922399/main.java:79: error: illegal character: '#' background-color: #3399ff; ^ /root/JavaX-Caches/tmp_2048922399/main.java:80: error: class, interface, or enum expected color: white; ^ /root/JavaX-Caches/tmp_2048922399/main.java:81: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2048922399/main.java:83: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2048922399/main.java:85: error: class, interface, or enum expected S headStuff() { ret hcss(css()); } ^ /root/JavaX-Caches/tmp_2048922399/main.java:90: error: class, interface, or enum expected x.style.display = window.getComputedStyle(x).display === "none" ? "block" : "none"; ^ /root/JavaX-Caches/tmp_2048922399/main.java:91: error: class, interface, or enum expected console.log("popup " + id + " display: " + x.style.display); ^ /root/JavaX-Caches/tmp_2048922399/main.java:92: error: class, interface, or enum expected ]], +id); ^ /root/JavaX-Caches/tmp_2048922399/main.java:93: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2048922399/main.java:98: error: <identifier> expected + hdiv(ul(entries), +id, class := "popdown"), ^ /root/JavaX-Caches/tmp_2048922399/main.java:100: error: <identifier> expected id := outerID, class := "popdowntrigger"); ^ /root/JavaX-Caches/tmp_2048922399/main.java:101: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2048922399/main.java:103: error: class, interface, or enum expected S complete() { ret hcombine(headStuff(), html()); } ^ /root/JavaX-Caches/tmp_2048922399/main.java:105: error: class, interface, or enum expected selfType width(int width) { this.width = width; this; } ^ /root/JavaX-Caches/tmp_2048922399/main.java:105: error: class, interface, or enum expected selfType width(int width) { this.width = width; this; } ^ /root/JavaX-Caches/tmp_2048922399/main.java:106: error: class, interface, or enum expected selfType height(int height) { this.height = height; this; } ^ /root/JavaX-Caches/tmp_2048922399/main.java:106: error: class, interface, or enum expected selfType height(int height) { this.height = height; this; } ^ 58 errors