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

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

/root/JavaX-Caches/tmp_1538321375/main.java:1: error: class, interface, or enum expected sclass CircularArrayList<E> extends AbstractList<E> implements List<E>, RandomAccess, Cloneable, Serializable { ^ /root/JavaX-Caches/tmp_1538321375/main.java:3: error: class, interface, or enum expected private int size; ^ /root/JavaX-Caches/tmp_1538321375/main.java:4: error: class, interface, or enum expected private int head; ^ /root/JavaX-Caches/tmp_1538321375/main.java:5: error: class, interface, or enum expected private int tail; ^ /root/JavaX-Caches/tmp_1538321375/main.java:7: error: class, interface, or enum expected *(int initialCapacity) { ^ /root/JavaX-Caches/tmp_1538321375/main.java:11: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:14: error: class, interface, or enum expected size = tail = head = 0; ^ /root/JavaX-Caches/tmp_1538321375/main.java:15: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:17: error: class, interface, or enum expected *() { this(10); } ^ /root/JavaX-Caches/tmp_1538321375/main.java:21: error: class, interface, or enum expected tail = 0; ^ /root/JavaX-Caches/tmp_1538321375/main.java:22: error: class, interface, or enum expected size = head = elementData.length; ^ /root/JavaX-Caches/tmp_1538321375/main.java:25: error: class, interface, or enum expected if (elementData.getClass() != Object[].class) ^ /root/JavaX-Caches/tmp_1538321375/main.java:25: error: <identifier> expected if (elementData.getClass() != Object[].class) ^ /root/JavaX-Caches/tmp_1538321375/main.java:26: error: <identifier> expected elementData = Arrays.copyOf(elementData, size, Object[].class); ^ /root/JavaX-Caches/tmp_1538321375/main.java:27: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:31: error: class, interface, or enum expected System.arraycopy(src, src.length + tail, ^ /root/JavaX-Caches/tmp_1538321375/main.java:33: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:39: error: class, interface, or enum expected if (minCapacity - elementData.length > 0) ^ /root/JavaX-Caches/tmp_1538321375/main.java:41: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:43: error: class, interface, or enum expected private static final int MAX_ARRAY_SIZE = Integer.MAX_VALUE - 8; ^ /root/JavaX-Caches/tmp_1538321375/main.java:51: error: class, interface, or enum expected private void grow(int minCapacity) { ^ /root/JavaX-Caches/tmp_1538321375/main.java:55: error: class, interface, or enum expected int newCapacity = oldCapacity + (oldCapacity >> 1); ^ /root/JavaX-Caches/tmp_1538321375/main.java:57: error: class, interface, or enum expected if (newCapacity - minCapacity < 0) ^ /root/JavaX-Caches/tmp_1538321375/main.java:60: error: class, interface, or enum expected if (newCapacity - MAX_ARRAY_SIZE > 0) ^ /root/JavaX-Caches/tmp_1538321375/main.java:63: error: class, interface, or enum expected Object[] oldData = elementData; ^ /root/JavaX-Caches/tmp_1538321375/main.java:64: error: class, interface, or enum expected elementData = new Object[newCapacity]; ^ /root/JavaX-Caches/tmp_1538321375/main.java:66: error: class, interface, or enum expected copy(oldData, elementData); ^ /root/JavaX-Caches/tmp_1538321375/main.java:67: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:73: error: class, interface, or enum expected return (minCapacity > MAX_ARRAY_SIZE) ? Integer.MAX_VALUE : MAX_ARRAY_SIZE; ^ /root/JavaX-Caches/tmp_1538321375/main.java:74: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:76: error: class, interface, or enum expected public int size() { ^ /root/JavaX-Caches/tmp_1538321375/main.java:78: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:80: error: class, interface, or enum expected public boolean isEmpty() { ^ /root/JavaX-Caches/tmp_1538321375/main.java:82: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:84: error: class, interface, or enum expected public boolean contains(Object o) { ^ /root/JavaX-Caches/tmp_1538321375/main.java:86: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:88: error: class, interface, or enum expected public int indexOf(Object o) { ^ /root/JavaX-Caches/tmp_1538321375/main.java:90: error: class, interface, or enum expected for (int i = 0; i < size; i++) ^ /root/JavaX-Caches/tmp_1538321375/main.java:90: error: class, interface, or enum expected for (int i = 0; i < size; i++) ^ /root/JavaX-Caches/tmp_1538321375/main.java:93: error: class, interface, or enum expected } else { ^ /root/JavaX-Caches/tmp_1538321375/main.java:94: error: class, interface, or enum expected for (int i = 0; i < size; i++) ^ /root/JavaX-Caches/tmp_1538321375/main.java:94: error: class, interface, or enum expected for (int i = 0; i < size; i++) ^ /root/JavaX-Caches/tmp_1538321375/main.java:97: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:99: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:101: error: class, interface, or enum expected public int lastIndexOf(Object o) { ^ /root/JavaX-Caches/tmp_1538321375/main.java:103: error: class, interface, or enum expected for (int i = size - 1; i >= 0; i--) ^ /root/JavaX-Caches/tmp_1538321375/main.java:103: error: class, interface, or enum expected for (int i = size - 1; i >= 0; i--) ^ /root/JavaX-Caches/tmp_1538321375/main.java:106: error: class, interface, or enum expected } else { ^ /root/JavaX-Caches/tmp_1538321375/main.java:107: error: class, interface, or enum expected for (int i = size - 1; i >= 0; i--) ^ /root/JavaX-Caches/tmp_1538321375/main.java:107: error: class, interface, or enum expected for (int i = size - 1; i >= 0; i--) ^ /root/JavaX-Caches/tmp_1538321375/main.java:110: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:112: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:114: error: class, interface, or enum expected public Object clone() { ^ /root/JavaX-Caches/tmp_1538321375/main.java:117: error: class, interface, or enum expected CircularArrayList<E> c = (CircularArrayList<E>) super.clone(); ^ /root/JavaX-Caches/tmp_1538321375/main.java:119: error: class, interface, or enum expected c.elementData = new Object[size]; ^ /root/JavaX-Caches/tmp_1538321375/main.java:120: error: class, interface, or enum expected copy(elementData, c.elementData); ^ /root/JavaX-Caches/tmp_1538321375/main.java:121: error: class, interface, or enum expected c.modCount = 0; ^ /root/JavaX-Caches/tmp_1538321375/main.java:122: error: class, interface, or enum expected return c; ^ /root/JavaX-Caches/tmp_1538321375/main.java:123: error: class, interface, or enum expected } catch (CloneNotSupportedException e) { ^ /root/JavaX-Caches/tmp_1538321375/main.java:126: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:129: error: class, interface, or enum expected public Object[] toArray() { ^ /root/JavaX-Caches/tmp_1538321375/main.java:132: error: class, interface, or enum expected System.arraycopy(elementData, elementData.length + tail, a, 0, -tail); ^ /root/JavaX-Caches/tmp_1538321375/main.java:133: error: class, interface, or enum expected System.arraycopy(elementData, 0, a, -tail, head); ^ /root/JavaX-Caches/tmp_1538321375/main.java:135: error: class, interface, or enum expected return a; ^ /root/JavaX-Caches/tmp_1538321375/main.java:136: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:138: error: class, interface, or enum expected public <T> T[] toArray(T[] a) { ^ /root/JavaX-Caches/tmp_1538321375/main.java:141: error: <identifier> expected a = ((Object)a.getClass() == (Object)Object[].class) ^ /root/JavaX-Caches/tmp_1538321375/main.java:145: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:148: error: class, interface, or enum expected System.arraycopy(elementData, 0, a, -tail, head); ^ /root/JavaX-Caches/tmp_1538321375/main.java:150: error: class, interface, or enum expected if (a.length > size) { ^ /root/JavaX-Caches/tmp_1538321375/main.java:152: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:155: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:159: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:161: error: class, interface, or enum expected public E get(int index) { ^ /root/JavaX-Caches/tmp_1538321375/main.java:164: error: class, interface, or enum expected return (E) elementData[pos(index)]; ^ /root/JavaX-Caches/tmp_1538321375/main.java:165: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:167: error: class, interface, or enum expected public E set(int index, E element) { ^ /root/JavaX-Caches/tmp_1538321375/main.java:170: error: class, interface, or enum expected int pos = pos(index); ^ /root/JavaX-Caches/tmp_1538321375/main.java:171: error: class, interface, or enum expected E oldValue = (E) elementData[pos]; ^ /root/JavaX-Caches/tmp_1538321375/main.java:172: error: class, interface, or enum expected elementData[pos] = element; ^ /root/JavaX-Caches/tmp_1538321375/main.java:173: error: class, interface, or enum expected return oldValue; ^ /root/JavaX-Caches/tmp_1538321375/main.java:174: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:176: error: class, interface, or enum expected public boolean add(E e) { ^ /root/JavaX-Caches/tmp_1538321375/main.java:178: error: class, interface, or enum expected elementData[head] = e; ^ /root/JavaX-Caches/tmp_1538321375/main.java:179: error: class, interface, or enum expected head++; ^ /root/JavaX-Caches/tmp_1538321375/main.java:180: error: class, interface, or enum expected size++; ^ /root/JavaX-Caches/tmp_1538321375/main.java:181: error: class, interface, or enum expected return true; ^ /root/JavaX-Caches/tmp_1538321375/main.java:182: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:184: error: class, interface, or enum expected public void add(int index, E element) { ^ /root/JavaX-Caches/tmp_1538321375/main.java:187: error: class, interface, or enum expected ensureCapacityInternal(size + 1); // Increments modCount!! ^ /root/JavaX-Caches/tmp_1538321375/main.java:189: error: class, interface, or enum expected int i = index + tail; ^ /root/JavaX-Caches/tmp_1538321375/main.java:190: error: class, interface, or enum expected if (i <= 0) { ^ /root/JavaX-Caches/tmp_1538321375/main.java:196: error: class, interface, or enum expected elementData[elementData.length + i - 1] = element; ^ /root/JavaX-Caches/tmp_1538321375/main.java:197: error: class, interface, or enum expected tail--; ^ /root/JavaX-Caches/tmp_1538321375/main.java:198: error: class, interface, or enum expected } else { ^ /root/JavaX-Caches/tmp_1538321375/main.java:201: error: class, interface, or enum expected elementData[i] = element; ^ /root/JavaX-Caches/tmp_1538321375/main.java:202: error: class, interface, or enum expected head++; ^ /root/JavaX-Caches/tmp_1538321375/main.java:203: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:206: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1538321375/main.java:208: error: class, interface, or enum expected public E remove(int index) { ^ 100 errors only showing the first 100 errors, of 142 total; use -Xmaxerrs if you would like to see more