mirror of
https://github.com/corda/corda.git
synced 2025-06-13 12:48:18 +00:00
add jdk-test target, and fix failures
The intent of this target is to run our test suite against the installed jre. This should help prevent our VM from diverging in implementation from the jdk. The remainder of this commit fixes the problems that this exposes.
This commit is contained in:
@ -147,8 +147,8 @@ public class ZipOutputStream extends DeflaterOutputStream {
|
||||
|
||||
addFourBytes(DATA_DESCRIPTER_HEADER, 0, tmpBuffer); // data descripter header
|
||||
addFourBytes(currentEntry.crc, 4, tmpBuffer); // crc value
|
||||
addFourBytes(currentEntry.compSize, 8, tmpBuffer); // compressed size
|
||||
addFourBytes(currentEntry.uncompSize, 12, tmpBuffer);// uncompressed size
|
||||
addFourBytes((int)currentEntry.compSize, 8, tmpBuffer); // compressed size
|
||||
addFourBytes((int)currentEntry.uncompSize, 12, tmpBuffer);// uncompressed size
|
||||
out.write(tmpBuffer, 0, 16);
|
||||
bytesWritten += 16;
|
||||
}
|
||||
@ -164,8 +164,8 @@ public class ZipOutputStream extends DeflaterOutputStream {
|
||||
|
||||
addFourBytes(e.modTimeDate, 12, tmpBuffer); // last mod date and time
|
||||
addFourBytes(e.crc, 16, tmpBuffer); // crc
|
||||
addFourBytes(e.compSize, 20, tmpBuffer); // compressed size
|
||||
addFourBytes(e.uncompSize, 24, tmpBuffer); // uncompressed size
|
||||
addFourBytes((int)e.compSize, 20, tmpBuffer); // compressed size
|
||||
addFourBytes((int)e.uncompSize, 24, tmpBuffer); // uncompressed size
|
||||
|
||||
addTwoBytes(e.getName().length(), 28, tmpBuffer); // file name length
|
||||
|
||||
|
Reference in New Issue
Block a user