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

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

/root/JavaX-Caches/tmp_349049862/main.java:4: error: class, interface, or enum expected sbool testJDKWatchService() { ^ /root/JavaX-Caches/tmp_349049862/main.java:5: error: unclosed character literal ret recordSuccessOrFailure('testJDKWatchService, testJDKWatchService_noLog()); ^ /root/JavaX-Caches/tmp_349049862/main.java:6: error: class, interface, or enum expected }; ^ /root/JavaX-Caches/tmp_349049862/main.java:8: error: class, interface, or enum expected sbool testJDKWatchService_noLog() false on exception { ^ /root/JavaX-Caches/tmp_349049862/main.java:9: error: class, interface, or enum expected final File dir = mkdirs(createTempDir()); ^ /root/JavaX-Caches/tmp_349049862/main.java:10: error: class, interface, or enum expected final Path path = dir.toPath(); ^ /root/JavaX-Caches/tmp_349049862/main.java:12: error: class, interface, or enum expected final WatchService watchService = FileSystems.getDefault().newWatchService(); ^ /root/JavaX-Caches/tmp_349049862/main.java:13: error: class, interface, or enum expected final WatchKey watchKey = path.register(watchService, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY, OVERFLOW); ^ /root/JavaX-Caches/tmp_349049862/main.java:15: error: class, interface, or enum expected final Set<S> changes = synchroSet(); ^ /root/JavaX-Caches/tmp_349049862/main.java:16: error: class, interface, or enum expected thread { ^ /root/JavaX-Caches/tmp_349049862/main.java:19: error: class, interface, or enum expected Countdown countdown = fiveSeconds(); ^ /root/JavaX-Caches/tmp_349049862/main.java:20: error: class, interface, or enum expected while (l(changes) < 2 && !countdown.done()) ^ /root/JavaX-Caches/tmp_349049862/main.java:22: error: class, interface, or enum expected } finally { ^ /root/JavaX-Caches/tmp_349049862/main.java:24: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_349049862/main.java:27: error: class, interface, or enum expected final Countdown countdown = fiveSeconds(); ^ /root/JavaX-Caches/tmp_349049862/main.java:28: error: class, interface, or enum expected expectException(ClosedWatchServiceException.class, r { ^ /root/JavaX-Caches/tmp_349049862/main.java:28: error: <identifier> expected expectException(ClosedWatchServiceException.class, r { ^ /root/JavaX-Caches/tmp_349049862/main.java:29: error: illegal start of type while (!countdown.done()) { ^ /root/JavaX-Caches/tmp_349049862/main.java:29: error: <identifier> expected while (!countdown.done()) { ^ /root/JavaX-Caches/tmp_349049862/main.java:29: error: ';' expected while (!countdown.done()) { ^ /root/JavaX-Caches/tmp_349049862/main.java:32: error: not a statement for (WatchEvent<?> event : wk.pollEvents()) pcall { ^ /root/JavaX-Caches/tmp_349049862/main.java:32: error: ';' expected for (WatchEvent<?> event : wk.pollEvents()) pcall { ^ /root/JavaX-Caches/tmp_349049862/main.java:40: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_349049862/main.java:42: error: class, interface, or enum expected pcall { watchService.close(); } ^ /root/JavaX-Caches/tmp_349049862/main.java:42: error: class, interface, or enum expected pcall { watchService.close(); } ^ /root/JavaX-Caches/tmp_349049862/main.java:44: error: class, interface, or enum expected ret eq(changes, lithashset("bla", "bla_temp")); ^ /root/JavaX-Caches/tmp_349049862/main.java:46: error: class, interface, or enum expected } ^ 27 errors