-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b53
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084564 | emb-9 | Claes Redestad | P3 | Resolved | Fixed | team |
JDK-8086806 | 8u65 | Claes Redestad | P3 | Resolved | Fixed | b01 |
JDK-8073576 | 8u60 | Sean Coffey | P3 | Resolved | Fixed | b06 |
JDK-8138097 | emb-8u65 | Unassigned | P3 | Resolved | Fixed | b01 |
JDK-8076883 | emb-8u60 | Claes Redestad | P3 | Resolved | Fixed | team |
Spec for the methods
http://docs.oracle.com/javase/8/docs/api/java/util/zip/ZipEntry.html#setCreationTime-java.nio.file.attribute.FileTime-
http://docs.oracle.com/javase/8/docs/api/java/util/zip/ZipEntry.html#setLastAccessTime-java.nio.file.attribute.FileTime-
says:
"Throws:
NullPointerException - if the time is null"
However the implementation doesn't satisfy this assertion, the following code will produce no exceptions:
new ZipEntry("entry").setCreationTime(null);
new ZipEntry("entry").setLastAccessTime(null);
new JarEntry("entry").setCreationTime(null);
new JarEntry("entry").setLastAccessTime(null);
The following JCK9 tests will fail due to this:
api/java_util/jar/JarEntry/autd2.html#CreationTime[nullCreationTime]
api/java_util/jar/JarEntry/autd2.html#LastAccessTime[nullCreationTime]
api/java_util/zip/ZipEntry/autd2.html#LastAccessTime[nullCreationTime]
api/java_util/zip/ZipEntry/autd2.html#CreationTime[nullCreationTime]
- backported by
-
JDK-8073576 ZipEntry/JarEntry.setCreation/LastAccessTime(null) don't throw NPE as specified
-
- Resolved
-
-
JDK-8076883 ZipEntry/JarEntry.setCreation/LastAccessTime(null) don't throw NPE as specified
-
- Resolved
-
-
JDK-8084564 ZipEntry/JarEntry.setCreation/LastAccessTime(null) don't throw NPE as specified
-
- Resolved
-
-
JDK-8086806 ZipEntry/JarEntry.setCreation/LastAccessTime(null) don't throw NPE as specified
-
- Resolved
-
-
JDK-8138097 ZipEntry/JarEntry.setCreation/LastAccessTime(null) don't throw NPE as specified
-
- Resolved
-
- duplicates
-
JDK-8065536 ZipEntry.setXXXTime(FileTime time) do not throw NullPointerException when time==null
-
- Closed
-
-
JDK-8073481 Some ZipEntry setters do the wrong null checks
-
- Closed
-
- relates to
-
JDK-8065536 ZipEntry.setXXXTime(FileTime time) do not throw NullPointerException when time==null
-
- Closed
-