4787e4fc46
(no changelog provided, but it's normal for eclipse) - sync with fedora 4.2.1-3 OBS-URL: https://build.opensuse.org/package/show/Java:packages/ecj?expand=0&rev=5
38 lines
1.5 KiB
Diff
38 lines
1.5 KiB
Diff
diff -u -r org/eclipse/jdt/internal/compiler/batch/GCCMain.java org/eclipse/jdt/internal/compiler/batch/GCCMain.java
|
|
--- a/org/eclipse/jdt/internal/compiler/batch/GCCMain.java 2012-10-29 21:12:37.244254740 -0400
|
|
+++ b/org/eclipse/jdt/internal/compiler/batch/GCCMain.java 2012-10-29 21:13:55.661107108 -0400
|
|
@@ -101,16 +101,6 @@
|
|
}
|
|
zipStream = new ZipOutputStream(new BufferedOutputStream(os));
|
|
zipStream.setMethod(ZipOutputStream.STORED);
|
|
- // Sun/OpenJDK require at least one entry in the zip file.
|
|
- ZipEntry entry = new ZipEntry(".dummy");
|
|
- byte[] contents = new byte[0];
|
|
- CRC32 crc = new CRC32();
|
|
- crc.update(contents);
|
|
- entry.setSize(contents.length);
|
|
- entry.setCrc(crc.getValue());
|
|
- zipStream.putNextEntry(entry);
|
|
- zipStream.write(contents);
|
|
- zipStream.closeEntry();
|
|
}
|
|
return zipStream;
|
|
}
|
|
@@ -120,16 +110,6 @@
|
|
OutputStream os = new FileOutputStream(zipDependencyDestination);
|
|
zipDependencyStream = new ZipOutputStream(new BufferedOutputStream(os));
|
|
zipDependencyStream.setMethod(ZipOutputStream.STORED);
|
|
- // Sun/OpenJDK require at least one entry in the zip file.
|
|
- ZipEntry entry = new ZipEntry(".dummy");
|
|
- byte[] contents = new byte[0];
|
|
- CRC32 crc = new CRC32();
|
|
- crc.update(contents);
|
|
- entry.setSize(contents.length);
|
|
- entry.setCrc(crc.getValue());
|
|
- zipDependencyStream.putNextEntry(entry);
|
|
- zipDependencyStream.write(contents);
|
|
- zipDependencyStream.closeEntry();
|
|
}
|
|
return zipDependencyStream;
|
|
}
|