Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > 2e8e39f301815b6d6819d78ab4338098 > files > 13

ecj-4.4.0-1.mga5.src.rpm

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;
 	}