Wrote /root/JavaX-Caches/tmp_582067946/main.java - 3283 bytes (written=3283, should be 3283)
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_989498370 /root/JavaX-Caches/tmp_582067946/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_582067946/main.java:4: error: class, interface, or enum expected
sclass GIFRewriter {
^
/root/JavaX-Caches/tmp_582067946/main.java:6: error: class, interface, or enum expected
settable bool debug;
^
/root/JavaX-Caches/tmp_582067946/main.java:7: error: class, interface, or enum expected
byte[] data;
^
/root/JavaX-Caches/tmp_582067946/main.java:8: error: class, interface, or enum expected
int numImages;
^
/root/JavaX-Caches/tmp_582067946/main.java:9: error: class, interface, or enum expected
ImageReader reader;
^
/root/JavaX-Caches/tmp_582067946/main.java:10: error: class, interface, or enum expected
S metaFormatName;
^
/root/JavaX-Caches/tmp_582067946/main.java:12: error: class, interface, or enum expected
Image get() ctex {
^
/root/JavaX-Caches/tmp_582067946/main.java:16: error: class, interface, or enum expected
if (!isGIF(inputFile))
^
/root/JavaX-Caches/tmp_582067946/main.java:19: error: class, interface, or enum expected
reader = ImageIO.getImageReadersByFormatName("gif").next();
^
/root/JavaX-Caches/tmp_582067946/main.java:21: error: class, interface, or enum expected
reader.setInput(ImageIO.createImageInputStream(inputFile));
^
/root/JavaX-Caches/tmp_582067946/main.java:23: error: class, interface, or enum expected
numImages = reader.getNumImages(true);
^
/root/JavaX-Caches/tmp_582067946/main.java:26: error: class, interface, or enum expected
IIOMetadata imageMetaData = reader.getImageMetadata(0);
^
/root/JavaX-Caches/tmp_582067946/main.java:27: error: class, interface, or enum expected
metaFormatName = imageMetaData.getNativeMetadataFormatName();
^
/root/JavaX-Caches/tmp_582067946/main.java:30: error: class, interface, or enum expected
new ByteArrayOutputStream baoStream;
^
/root/JavaX-Caches/tmp_582067946/main.java:32: error: class, interface, or enum expected
{
^
/root/JavaX-Caches/tmp_582067946/main.java:35: error: class, interface, or enum expected
ImageWriter writer = ImageIO.getImageWriter(reader);
^
/root/JavaX-Caches/tmp_582067946/main.java:37: error: class, interface, or enum expected
writer.setOutput(ios);
^
/root/JavaX-Caches/tmp_582067946/main.java:39: error: class, interface, or enum expected
writer.prepareWriteSequence(null);
^
/root/JavaX-Caches/tmp_582067946/main.java:41: error: class, interface, or enum expected
for i to numImages: {
^
/root/JavaX-Caches/tmp_582067946/main.java:45: error: class, interface, or enum expected
frameIn = transformImage(frameIn);
^
/root/JavaX-Caches/tmp_582067946/main.java:48: error: class, interface, or enum expected
IIOMetadataNode root = (IIOMetadataNode)reader.getImageMetadata(i).getAsTree(metaFormatName);
^
/root/JavaX-Caches/tmp_582067946/main.java:51: error: class, interface, or enum expected
int nNodes = root.getLength();
^
/root/JavaX-Caches/tmp_582067946/main.java:52: error: class, interface, or enum expected
for j to nNodes: {
^
/root/JavaX-Caches/tmp_582067946/main.java:54: error: class, interface, or enum expected
if (node.getNodeName().equalsIgnoreCase("GraphicControlExtension")) {
^
/root/JavaX-Caches/tmp_582067946/main.java:56: error: class, interface, or enum expected
if (parseInt(node.getAttribute("delayTime")) == 0)
^
/root/JavaX-Caches/tmp_582067946/main.java:58: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_582067946/main.java:63: error: class, interface, or enum expected
metadata.setFromTree(metadata.getNativeMetadataFormatName(), root);
^
/root/JavaX-Caches/tmp_582067946/main.java:66: error: class, interface, or enum expected
IIOImage frameOut = new IIOImage(frameIn, null, metadata);
^
/root/JavaX-Caches/tmp_582067946/main.java:69: error: class, interface, or enum expected
writer.writeToSequence(frameOut, writer.getDefaultWriteParam());
^
/root/JavaX-Caches/tmp_582067946/main.java:70: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_582067946/main.java:73: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_582067946/main.java:77: error: class, interface, or enum expected
if (debug) print("Data size: " + l(data));
^
/root/JavaX-Caches/tmp_582067946/main.java:78: error: class, interface, or enum expected
ret Toolkit.getDefaultToolkit().createImage(data);
^
/root/JavaX-Caches/tmp_582067946/main.java:79: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_582067946/main.java:86: error: class, interface, or enum expected
int nNodes = root.getLength();
^
/root/JavaX-Caches/tmp_582067946/main.java:87: error: class, interface, or enum expected
for j to nNodes: {
^
/root/JavaX-Caches/tmp_582067946/main.java:89: error: class, interface, or enum expected
if (node.getNodeName().equalsIgnoreCase("GraphicControlExtension")) {
^
/root/JavaX-Caches/tmp_582067946/main.java:91: error: class, interface, or enum expected
if (parseInt(node.getAttribute("delayTime")) == 0) true;
^
/root/JavaX-Caches/tmp_582067946/main.java:92: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_582067946/main.java:96: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_582067946/main.java:98: error: class, interface, or enum expected
swappable BufferedImage transformImage(BufferedImage image) { ret image; }
^
41 errors