Wrote /root/JavaX-Caches/tmp_1762500985/main.java - 2836 bytes (written=2836, should be 2836) 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_1447787959 /root/JavaX-Caches/tmp_1762500985/main.java 2>&1
[Compilation Error]

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

/root/JavaX-Caches/tmp_1762500985/main.java:4: error: class, interface, or enum expected transient sclass WordIndexWithBitSets<A> { ^ /root/JavaX-Caches/tmp_1762500985/main.java:6: error: class, interface, or enum expected new UniqueList<A> documents; ^ /root/JavaX-Caches/tmp_1762500985/main.java:7: error: class, interface, or enum expected Map<S, Entry> index = ciMap(); ^ /root/JavaX-Caches/tmp_1762500985/main.java:11: error: class, interface, or enum expected sclass Entry { ^ /root/JavaX-Caches/tmp_1762500985/main.java:13: error: class, interface, or enum expected int[] intArray; ^ /root/JavaX-Caches/tmp_1762500985/main.java:14: error: class, interface, or enum expected BitSet bitSet; ^ /root/JavaX-Caches/tmp_1762500985/main.java:16: error: class, interface, or enum expected BitSet bitSet() { ^ /root/JavaX-Caches/tmp_1762500985/main.java:19: error: class, interface, or enum expected ret bitSet; ^ /root/JavaX-Caches/tmp_1762500985/main.java:20: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1762500985/main.java:22: error: class, interface, or enum expected int count() { ret intArray.length; } ^ /root/JavaX-Caches/tmp_1762500985/main.java:26: error: class, interface, or enum expected *(Map<A, S> map) { fOr (A a, S text : map) add(a, text); } ^ /root/JavaX-Caches/tmp_1762500985/main.java:30: error: class, interface, or enum expected Set<S> words = extractWords(text); ^ /root/JavaX-Caches/tmp_1762500985/main.java:31: error: class, interface, or enum expected for (S word : words) addWord(idx, word); ^ /root/JavaX-Caches/tmp_1762500985/main.java:32: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1762500985/main.java:36: error: class, interface, or enum expected if (e == null) index.put(word, e = new Entry); ^ /root/JavaX-Caches/tmp_1762500985/main.java:37: error: class, interface, or enum expected e.intSet.add(idx); ^ /root/JavaX-Caches/tmp_1762500985/main.java:38: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1762500985/main.java:44: error: class, interface, or enum expected e.intSet = null; ^ /root/JavaX-Caches/tmp_1762500985/main.java:45: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1762500985/main.java:50: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1762500985/main.java:54: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1762500985/main.java:58: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1762500985/main.java:62: error: class, interface, or enum expected ret e == null ? null : documentListFromIntArray(e.intArray); ^ /root/JavaX-Caches/tmp_1762500985/main.java:63: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1762500985/main.java:67: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1762500985/main.java:72: error: class, interface, or enum expected if (n == 0) ret documents; ^ /root/JavaX-Caches/tmp_1762500985/main.java:73: error: class, interface, or enum expected if (n == 1) ret documentsContainingWord(first(words)); ^ /root/JavaX-Caches/tmp_1762500985/main.java:76: error: class, interface, or enum expected Entry[] entries = new[n]; ^ /root/JavaX-Caches/tmp_1762500985/main.java:77: error: class, interface, or enum expected Iterator<S> itWords = iterator(words); ^ /root/JavaX-Caches/tmp_1762500985/main.java:78: error: class, interface, or enum expected for i to n: { ^ /root/JavaX-Caches/tmp_1762500985/main.java:80: error: class, interface, or enum expected if (e == null) null; ^ /root/JavaX-Caches/tmp_1762500985/main.java:81: error: class, interface, or enum expected entries[i] = e; ^ /root/JavaX-Caches/tmp_1762500985/main.java:82: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1762500985/main.java:86: error: class, interface, or enum expected for (int i = 1; i < n; i++) ^ /root/JavaX-Caches/tmp_1762500985/main.java:86: error: class, interface, or enum expected for (int i = 1; i < n; i++) ^ /root/JavaX-Caches/tmp_1762500985/main.java:86: error: class, interface, or enum expected for (int i = 1; i < n; i++) ^ /root/JavaX-Caches/tmp_1762500985/main.java:89: error: class, interface, or enum expected ret documentListFromIntArray(bitSetToIntArray(bs)); ^ /root/JavaX-Caches/tmp_1762500985/main.java:90: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1762500985/main.java:94: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1762500985/main.java:96: error: class, interface, or enum expected NavigableSet<S> words() { ret (NavigableSet) keys(index); } ^ /root/JavaX-Caches/tmp_1762500985/main.java:98: error: class, interface, or enum expected int numWords() { ret l(index); } ^ /root/JavaX-Caches/tmp_1762500985/main.java:101: error: class, interface, or enum expected void add(S s) { add((A) s, s); } ^ 42 errors