Wrote /root/JavaX-Caches/tmp_1276875786/main.java - 5452 bytes (written=5452, should be 5452)
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_1201078215 /root/JavaX-Caches/tmp_1276875786/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_1276875786/main.java:1: error: class, interface, or enum expected
set flag Reparse.
^
/root/JavaX-Caches/tmp_1276875786/main.java:5: error: class, interface, or enum expected
settable int capacity = 6;
^
/root/JavaX-Caches/tmp_1276875786/main.java:6: error: class, interface, or enum expected
settable bool openTwoPositionsAtStart = true;
^
/root/JavaX-Caches/tmp_1276875786/main.java:8: error: records are not supported in -source 11
record noeq Position(double openingPrice, double direction) {
^
(use -source 16 or higher to enable records)
/root/JavaX-Caches/tmp_1276875786/main.java:11: error: class, interface, or enum expected
int digitizedOpeningPrice() { ret digitizePrice(openingPrice); }
^
/root/JavaX-Caches/tmp_1276875786/main.java:11: error: class, interface, or enum expected
int digitizedOpeningPrice() { ret digitizePrice(openingPrice); }
^
/root/JavaX-Caches/tmp_1276875786/main.java:13: error: class, interface, or enum expected
bool isLong() { ret direction > 0; }
^
/root/JavaX-Caches/tmp_1276875786/main.java:14: error: class, interface, or enum expected
bool isShort() { ret direction < 0; }
^
/root/JavaX-Caches/tmp_1276875786/main.java:16: error: class, interface, or enum expected
bool closed() { ret !isNaN(closingPrice); }
^
/root/JavaX-Caches/tmp_1276875786/main.java:17: error: class, interface, or enum expected
S type() { ret trading_directionToPositionType(direction); }
^
/root/JavaX-Caches/tmp_1276875786/main.java:21: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:25: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:29: error: class, interface, or enum expected
openPositions.remove(this);
^
/root/JavaX-Caches/tmp_1276875786/main.java:30: error: class, interface, or enum expected
closingPrice = currentPrice();
^
/root/JavaX-Caches/tmp_1276875786/main.java:31: error: class, interface, or enum expected
closedPositions.add(this);
^
/root/JavaX-Caches/tmp_1276875786/main.java:32: error: class, interface, or enum expected
realizedProfit += profit();
^
/root/JavaX-Caches/tmp_1276875786/main.java:33: error: class, interface, or enum expected
print(this);
^
/root/JavaX-Caches/tmp_1276875786/main.java:34: error: class, interface, or enum expected
printPositions();
^
/root/JavaX-Caches/tmp_1276875786/main.java:35: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:45: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:50: error: class, interface, or enum expected
gettable double oldPrice = Double.NaN;
^
/root/JavaX-Caches/tmp_1276875786/main.java:51: error: class, interface, or enum expected
gettable double startingPrice = Double.NaN;
^
/root/JavaX-Caches/tmp_1276875786/main.java:52: error: class, interface, or enum expected
gettable double digitizationBase;
^
/root/JavaX-Caches/tmp_1276875786/main.java:53: error: class, interface, or enum expected
gettable int lastDirection;
^
/root/JavaX-Caches/tmp_1276875786/main.java:54: error: class, interface, or enum expected
gettable double realizedProfit;
^
/root/JavaX-Caches/tmp_1276875786/main.java:55: error: class, interface, or enum expected
gettable int stepCount;
^
/root/JavaX-Caches/tmp_1276875786/main.java:56: error: class, interface, or enum expected
gettable new LinkedHashSet openPositions;
^
/root/JavaX-Caches/tmp_1276875786/main.java:57: error: class, interface, or enum expected
gettable new L closedPositions;
^
/root/JavaX-Caches/tmp_1276875786/main.java:58: error: class, interface, or enum expected
gettable new DoubleBuffer priceHistory;
^
/root/JavaX-Caches/tmp_1276875786/main.java:60: error: class, interface, or enum expected
Position openPosition(double direction) {
^
/root/JavaX-Caches/tmp_1276875786/main.java:62: error: class, interface, or enum expected
openPositions.add(p);
^
/root/JavaX-Caches/tmp_1276875786/main.java:63: error: class, interface, or enum expected
print("Opening " + p);
^
/root/JavaX-Caches/tmp_1276875786/main.java:64: error: class, interface, or enum expected
printPositions();
^
/root/JavaX-Caches/tmp_1276875786/main.java:65: error: class, interface, or enum expected
ret p;
^
/root/JavaX-Caches/tmp_1276875786/main.java:66: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:70: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:74: error: class, interface, or enum expected
p?.close();
^
/root/JavaX-Caches/tmp_1276875786/main.java:75: error: class, interface, or enum expected
ret p;
^
/root/JavaX-Caches/tmp_1276875786/main.java:76: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:81: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:83: error: class, interface, or enum expected
Position openShort() { ret openPosition(-1); }
^
/root/JavaX-Caches/tmp_1276875786/main.java:84: error: class, interface, or enum expected
Position openLong() { ret openPosition(1); }
^
/root/JavaX-Caches/tmp_1276875786/main.java:89: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:91: error: class, interface, or enum expected
bool started() { ret !isNaN(startingPrice); }
^
/root/JavaX-Caches/tmp_1276875786/main.java:95: error: class, interface, or enum expected
startingPrice = currentPrice();
^
/root/JavaX-Caches/tmp_1276875786/main.java:96: error: class, interface, or enum expected
digitizationBase = frac(startingPrice/ladderStep);
^
/root/JavaX-Caches/tmp_1276875786/main.java:97: error: class, interface, or enum expected
print("Starting CORRIDOR at " + startingPrice + " +/- " + ladderStep);
^
/root/JavaX-Caches/tmp_1276875786/main.java:98: error: class, interface, or enum expected
if (openTwoPositionsAtStart) {
^
/root/JavaX-Caches/tmp_1276875786/main.java:100: error: class, interface, or enum expected
openPosition(-1);
^
/root/JavaX-Caches/tmp_1276875786/main.java:101: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:106: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:110: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:114: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:119: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:124: error: class, interface, or enum expected
if (oldPrice == price) ret;
^
/root/JavaX-Caches/tmp_1276875786/main.java:126: error: class, interface, or enum expected
currentPrice = price;
^
/root/JavaX-Caches/tmp_1276875786/main.java:127: error: class, interface, or enum expected
int direction = sign(price-oldPrice);
^
/root/JavaX-Caches/tmp_1276875786/main.java:128: error: class, interface, or enum expected
lastDirection = direction;
^
/root/JavaX-Caches/tmp_1276875786/main.java:129: error: class, interface, or enum expected
if (oldPriceDigitized() == currentPriceDigitized()) ret;
^
/root/JavaX-Caches/tmp_1276875786/main.java:131: error: class, interface, or enum expected
bool first = empty(priceHistory);
^
/root/JavaX-Caches/tmp_1276875786/main.java:132: error: class, interface, or enum expected
priceHistory.add(price);
^
/root/JavaX-Caches/tmp_1276875786/main.java:133: error: class, interface, or enum expected
++stepCount;
^
/root/JavaX-Caches/tmp_1276875786/main.java:134: error: class, interface, or enum expected
if (first)
^
/root/JavaX-Caches/tmp_1276875786/main.java:136: error: class, interface, or enum expected
else
^
/root/JavaX-Caches/tmp_1276875786/main.java:141: error: class, interface, or enum expected
if (started())
^
/root/JavaX-Caches/tmp_1276875786/main.java:144: error: class, interface, or enum expected
print(this);
^
/root/JavaX-Caches/tmp_1276875786/main.java:145: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:151: error: class, interface, or enum expected
int p1 = oldPriceDigitized();
^
/root/JavaX-Caches/tmp_1276875786/main.java:152: error: class, interface, or enum expected
int p2 = currentPriceDigitized();
^
/root/JavaX-Caches/tmp_1276875786/main.java:155: error: class, interface, or enum expected
int direction = lastDirection();
^
/root/JavaX-Caches/tmp_1276875786/main.java:156: error: class, interface, or enum expected
if (!hasPosition(currentPrice(), -direction))
^
/root/JavaX-Caches/tmp_1276875786/main.java:158: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:162: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:166: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:170: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:174: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:178: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:182: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:192: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1276875786/main.java:194: error: class, interface, or enum expected
toString { ret commaCombine(status()); }
^
80 errors