Wrote /root/JavaX-Caches/tmp_1045235359/main.java - 2526 bytes (written=2526, should be 2526)
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_93092324 /root/JavaX-Caches/tmp_1045235359/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_1045235359/main.java:11: error: class, interface, or enum expected
sclass MemoryWarningSystem {
^
/root/JavaX-Caches/tmp_1045235359/main.java:18: error: class, interface, or enum expected
public MemoryWarningSystem() {
^
/root/JavaX-Caches/tmp_1045235359/main.java:20: error: class, interface, or enum expected
NotificationEmitter emitter = (NotificationEmitter) mbean;
^
/root/JavaX-Caches/tmp_1045235359/main.java:21: error: class, interface, or enum expected
emitter.addNotificationListener(new NotificationListener() {
^
/root/JavaX-Caches/tmp_1045235359/main.java:22: error: class, interface, or enum expected
public void handleNotification(Notification n, Object hb) {
^
/root/JavaX-Caches/tmp_1045235359/main.java:26: error: class, interface, or enum expected
long usedMemory = tenuredGenPool.getUsage().getUsed();
^
/root/JavaX-Caches/tmp_1045235359/main.java:27: error: class, interface, or enum expected
for (Listener listener : listeners) {
^
/root/JavaX-Caches/tmp_1045235359/main.java:29: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1045235359/main.java:33: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1045235359/main.java:35: error: class, interface, or enum expected
public boolean addListener(Listener listener) {
^
/root/JavaX-Caches/tmp_1045235359/main.java:37: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1045235359/main.java:39: error: class, interface, or enum expected
public boolean removeListener(Listener listener) {
^
/root/JavaX-Caches/tmp_1045235359/main.java:41: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1045235359/main.java:43: error: class, interface, or enum expected
private static final MemoryPoolMXBean tenuredGenPool =
^
/root/JavaX-Caches/tmp_1045235359/main.java:46: error: class, interface, or enum expected
public static void setPercentageUsageThreshold(double percentage) {
^
/root/JavaX-Caches/tmp_1045235359/main.java:49: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1045235359/main.java:51: error: class, interface, or enum expected
long warningThreshold = (long) (maxMemory * percentage);
^
/root/JavaX-Caches/tmp_1045235359/main.java:52: error: class, interface, or enum expected
tenuredGenPool.setUsageThreshold(warningThreshold);
^
/root/JavaX-Caches/tmp_1045235359/main.java:53: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1045235359/main.java:67: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1045235359/main.java:70: error: class, interface, or enum expected
}
^
21 errors