87 Commits

Author SHA1 Message Date
Lance Andersen
72f74df49a 8292427: Improve specification of InflaterInputStream.fill()
Reviewed-by: bpb, alanb, simonis
2022-11-03 17:02:33 +00:00
Lance Andersen
a8f0f575ab 8278165: Clarify that ZipInputStream does not access the CEN fields for a ZipEntry
Reviewed-by: bpb, alanb
2022-09-16 18:52:25 +00:00
Volker Simonis
2c61efe3de 8282648: Weaken the InflaterInputStream specification in order to allow faster Zip implementations
Reviewed-by: lancea, alanb, jpai, mr, darcy
2022-09-05 12:50:52 +00:00
Volker Simonis
802ef38060 8292327: java.io.EOFException in InflaterInputStream after JDK-8281962
Reviewed-by: alanb, lancea
2022-08-17 09:34:41 +00:00
Jesper Wilhelmsson
7039c6616a Merge 2022-06-20 19:38:49 +00:00
Lance Andersen
453e8beb43 8288527: broken link in java.base/java/util/zip/package-summary.html
Reviewed-by: bpb, martin
2022-06-20 17:32:31 +00:00
Andrey Turbanov
e833c1d179 8285519: Change usages of TimeUnit.convert to TimeUnit.toXXX
Reviewed-by: rriggs
2022-06-16 17:29:49 +00:00
Andrey Turbanov
295be6f10f 8287285: Avoid redundant HashMap.containsKey call in java.util.zip.ZipFile.Source.get
Reviewed-by: jpai, alanb
2022-05-26 20:32:56 +00:00
Mark Powers
6cc4bb1169 6725221: Standardize obtaining boolean properties with defaults
Reviewed-by: prr, rriggs
2022-05-24 18:16:07 +00:00
Jaikiran Pai
e4378ab28d 8286559: Re-examine synchronization of mark and reset methods on InflaterInputStream
Reviewed-by: lancea, alanb, bpb
2022-05-14 03:21:01 +00:00
Magnus Ihse Bursie
fb469fb894 8284893: Fix typos in java.base
Reviewed-by: iris, wetmore, lancea, mullan, naoto
2022-04-19 20:07:57 +00:00
Jaikiran Pai
91fab6ad59 8283411: InflaterInputStream holds on to a temporary byte array of 512 bytes
Reviewed-by: lancea, vtewari, alanb
2022-03-23 09:47:44 +00:00
Ravi Reddy
ff0b0927a2 8278794: Infinite loop in DeflaterOutputStream.finish()
Reviewed-by: coffeys, lancea
2022-03-18 15:31:30 +00:00
Lance Andersen
f0995abe62 8280404: Unexpected exception thrown when CEN file entry comment length is not valid
Reviewed-by: alanb
2022-03-07 16:10:31 +00:00
Lance Andersen
a020b6ba8f 8280409: JarFile::getInputStream can fail with NPE accessing ze.getName()
Reviewed-by: mullan, alanb
2022-02-23 16:56:50 +00:00
Volker Simonis
378fa507a2 8281962: Avoid unnecessary native calls in InflaterInputStream
Reviewed-by: clanger, redestad, alanb, lancea
2022-02-23 08:36:13 +00:00
Masanori Yano
848b16a3f9 8272746: ZipFile can't open big file (NegativeArraySizeException)
Reviewed-by: lancea
2022-01-18 18:20:57 +00:00
Pavel Rappo
f180530935 8279918: Fix various doc typos
Reviewed-by: kevinw, lancea, mullan, sspitsyn, naoto, jlahoda, azvegint, egahlin, jjg
2022-01-14 16:10:14 +00:00
Sergey Tsypanov
73a9654c26 8276806: Use Objects.checkFromIndexSize where possible in java.base
Reviewed-by: rriggs, lancea
2021-12-02 20:00:49 +00:00
Ravi Reddy
1e9ed54d36 8193682: Infinite loop in ZipOutputStream.close()
Reviewed-by: lancea, coffeys
2021-12-01 15:35:00 +00:00
Jaikiran Pai
0a01baaf2d 8277986: Typo in javadoc of java.util.zip.ZipEntry#setTime
Reviewed-by: alanb, iris, lancea
2021-12-01 01:17:07 +00:00
Sergey Bylokhov
e3243ee963 8277087: ZipException: zip END header not found at ZipFile#Source.findEND
Reviewed-by: lancea
2021-11-23 08:57:34 +00:00
Lance Andersen
b85500e524 8276123: ZipFile::getEntry will not return a file entry when there is a directory entry of the same name within a Zip File
Reviewed-by: redestad, alanb
2021-11-12 17:12:13 +00:00
Eamonn McManus
905e3e8813 8231490: Ugly racy writes to ZipUtils.defaultBuf
Reviewed-by: lancea
2021-11-08 19:57:44 +00:00
Lance Andersen
831802ddb1 8275163: Deflater::deflate methods omit javadoc for ReadOnlyBufferException
Reviewed-by: bpb, iris, naoto
2021-10-15 20:38:43 +00:00
Lance Andersen
aaa6f696b0 8273250: Address javadoc issues in Deflater::setDictionationary
Reviewed-by: rriggs, naoto, iris, bpb
2021-09-02 16:06:55 +00:00
Claes Redestad
30b0f820ce 8272626: Avoid C-style array declarations in java.*
Reviewed-by: dfuchs, alanb
2021-08-18 10:47:03 +00:00
Lance Andersen
717792c3b7 8263940: NPE when creating default file system when default file system provider is packaged as JAR file on class path
Reviewed-by: naoto, bpb, iris, joehw
2021-08-13 16:11:04 +00:00
Jesper Wilhelmsson
c36755dedf Merge 2021-07-22 00:46:18 +00:00
Conor Cleary
0e6c01163f 8262967: Improve Zip file support
Reviewed-by: ahgross, rhalade, aefimov
2021-07-21 20:28:56 +00:00
Weijun Wang
ef9315bead 8260967: Better jar file validation
Reviewed-by: hchao, valeriep
2021-07-21 20:28:55 +00:00
Yi Yang
afe957cd97 8268698: Use Objects.check{Index,FromToIndex,FromIndexSize} for java.base
Reviewed-by: mchung, rriggs
2021-07-13 02:23:16 +00:00
Weijun Wang
6765f90250 8266459: Implement JEP 411: Deprecate the Security Manager for Removal
Co-authored-by: Sean Mullan <mullan@openjdk.org>
Co-authored-by: Lance Andersen <lancea@openjdk.org>
Co-authored-by: Weijun Wang <weijun@openjdk.org>
Reviewed-by: erikj, darcy, chegar, naoto, joehw, alanb, mchung, kcr, prr, lancea
2021-06-02 11:57:31 +00:00
Tagir F. Valeev
ab5a7ff230 8267587: Update java.util to use enhanced switch
Reviewed-by: iris
2021-05-31 08:48:38 +00:00
Patrick Concannon
a52c4ede2f 8267110: Update java.util to use instanceof pattern variable
Reviewed-by: lancea, naoto
2021-05-25 08:24:49 +00:00
Hamlin Li
15d4787724 8265496: improve null check in DeflaterOutputStream/InflaterInputStream
Reviewed-by: lancea, naoto
2021-04-27 01:06:56 +00:00
Jonathan Gibbons
20b9ba53a5 8262875: doccheck: empty paragraphs, etc in java.base module
Reviewed-by: alanb, darcy, lancea
2021-03-02 20:35:51 +00:00
Claes Redestad
c8de943c1f 8260617: Merge ZipFile encoding check with the initial hash calculation
Reviewed-by: lancea
2021-02-03 11:43:17 +00:00
Claes Redestad
1f47de5f6a 8260010: UTF8ZipCoder not thread-safe since JDK-8243469
Reviewed-by: lancea
2021-01-20 23:42:29 +00:00
Eirik Bjorsnos
05294802c4 8259867: Move encoding checks into ZipCoder
Reviewed-by: redestad, lancea
2021-01-20 12:02:39 +00:00
Lance Andersen
6247736fc9 8256018: Adler32/CRC32/CRC32C missing reachabilityFence
Reviewed-by: naoto, alanb
2020-11-11 15:34:03 +00:00
Pavel Rappo
c5462bb95d 8255989: Remove explicitly unascribed authorship from Java source files
Reviewed-by: redestad, mr, mchung, iris, serb
2020-11-07 12:11:43 +00:00
Lance Andersen
05bcd67e65 8255529: Remove unused methods from java.util.zip.ZipFile
Reviewed-by: naoto, redestad
2020-11-02 18:24:48 +00:00
Volker Simonis
60159cff40 8253952: Refine ZipOutputStream.putNextEntry() to recalculate ZipEntry's compressed size
Reviewed-by: lancea, alanb
2020-10-15 09:18:26 +00:00
Philippe Marschall
2a406f3ce5 8138732: Rename @HotSpotIntrinsicCandidate to @IntrinsicCandidate and move it to the jdk.internal.vm.annotation package
Reviewed-by: dholmes, alanb, psandoz, kvn, egahlin
2020-09-30 20:05:07 +00:00
Jaikiran Pai
e5866aa756 8244706: GZIP "OS" header flag hard-coded to 0 instead of 255 (RFC 1952 non-compliance)
Reviewed-by: lancea, bchristi
2020-09-16 15:10:57 +00:00
Sean Coffey
7686e87155 8250968: Symlinks attributes not preserved when using jarsigner on zip files
Reviewed-by: lancea, weijun, hchao
2020-09-07 19:01:07 +00:00
Lance Andersen
dc8026d66d 8251205: Add missing javadoc comments to ZipConstants.java
Reviewed-by: naoto, rriggs
2020-08-11 15:41:47 -04:00
Mikael Vidstedt
1982432db4 Merge 2020-07-14 23:29:45 -07:00
Sean Coffey
3d9bad16d1 8218021: Have jarsigner preserve posix permission attributes
Reviewed-by: weijun, lancea, alanb
2020-07-02 08:17:31 +00:00