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

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

/root/JavaX-Caches/tmp_1114746146/main.java:1: error: class, interface, or enum expected persistable class Position extends G22TradingStrategy.Position { ^ /root/JavaX-Caches/tmp_1114746146/main.java:2: error: ';' expected settable AbstractJuicer juicer; ^ /root/JavaX-Caches/tmp_1114746146/main.java:2: error: <identifier> expected settable AbstractJuicer juicer; ^ /root/JavaX-Caches/tmp_1114746146/main.java:4: error: <identifier> expected toString { ^ /root/JavaX-Caches/tmp_1114746146/main.java:5: error: not a statement ret super.toString() ^ /root/JavaX-Caches/tmp_1114746146/main.java:5: error: ';' expected ret super.toString() ^ /root/JavaX-Caches/tmp_1114746146/main.java:6: error: not a statement + (juicer == null ? "" : ". " + commaCombine(juicer.currentSignals())); ^ /root/JavaX-Caches/tmp_1114746146/main.java:10: error: class, interface, or enum expected srecord ProfitBeforeLeverageJuiceable(Position p) is Juiceable { ^ /root/JavaX-Caches/tmp_1114746146/main.java:11: error: class, interface, or enum expected public double juiceValue() { ret p.profitBeforeLeverage(); } ^ /root/JavaX-Caches/tmp_1114746146/main.java:11: error: class, interface, or enum expected public double juiceValue() { ret p.profitBeforeLeverage(); } ^ /root/JavaX-Caches/tmp_1114746146/main.java:16: error: class, interface, or enum expected currentPrice = price; ^ /root/JavaX-Caches/tmp_1114746146/main.java:17: error: class, interface, or enum expected afterwards { afterStep(); change(); } ^ /root/JavaX-Caches/tmp_1114746146/main.java:17: error: class, interface, or enum expected afterwards { afterStep(); change(); } ^ /root/JavaX-Caches/tmp_1114746146/main.java:17: error: class, interface, or enum expected afterwards { afterStep(); change(); } ^ /root/JavaX-Caches/tmp_1114746146/main.java:19: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1114746146/main.java:25: error: class, interface, or enum expected if (p.juicer != null) { ^ /root/JavaX-Caches/tmp_1114746146/main.java:27: error: class, interface, or enum expected var strongest = highestBy(signals, s -> s.strength()); ^ /root/JavaX-Caches/tmp_1114746146/main.java:28: error: class, interface, or enum expected if (strongest != null && strongest.isTrigger()) { ^ /root/JavaX-Caches/tmp_1114746146/main.java:30: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1114746146/main.java:35: error: class, interface, or enum expected Position openShort() { ret openPosition(-1); } ^ /root/JavaX-Caches/tmp_1114746146/main.java:36: error: class, interface, or enum expected Position openLong() { ret openPosition(1); } ^ /root/JavaX-Caches/tmp_1114746146/main.java:40: error: class, interface, or enum expected p.marginToUse = marginToUseForNewPosition(); ^ /root/JavaX-Caches/tmp_1114746146/main.java:41: error: class, interface, or enum expected addJuicer(p); ^ /root/JavaX-Caches/tmp_1114746146/main.java:42: error: class, interface, or enum expected ret openPosition(p, direction, openReason); ^ /root/JavaX-Caches/tmp_1114746146/main.java:43: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1114746146/main.java:47: error: class, interface, or enum expected if (j == null) ret; ^ /root/JavaX-Caches/tmp_1114746146/main.java:48: error: class, interface, or enum expected j.copyTransientValuesFrom(p.juicer); ^ /root/JavaX-Caches/tmp_1114746146/main.java:49: error: class, interface, or enum expected j.juiceable(new ProfitBeforeLeverageJuiceable(p)); ^ /root/JavaX-Caches/tmp_1114746146/main.java:50: error: class, interface, or enum expected p.juicer(j); ^ /root/JavaX-Caches/tmp_1114746146/main.java:51: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1114746146/main.java:56: error: class, interface, or enum expected addJuicer(p); ^ /root/JavaX-Caches/tmp_1114746146/main.java:57: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1114746146/main.java:60: error: class, interface, or enum expected L<? extends Position> openPositions() { ret (L) super.openPositions(); } ^ /root/JavaX-Caches/tmp_1114746146/main.java:64: error: class, interface, or enum expected } ^ 34 errors