Details
-
Bug
-
Resolution: Fixed
-
P2
-
15, 16, 17
-
b07
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8260379 | 16.0.1 | Claes Redestad | P2 | Closed | Fixed | b03 |
Description
Vitaly Davidovich reports an IllegalStateException when inspecting a JarFile's contents using a parallel stream:
java.lang.IllegalStateException: Current state = CODING_END, new state = FLUSHED
at
java.base/java.nio.charset.CharsetDecoder.throwIllegalStateException(CharsetDecoder.java:998)
at
java.base/java.nio.charset.CharsetDecoder.flush(CharsetDecoder.java:681)
at
java.base/java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:810)
at
java.base/java.util.zip.ZipCoder.normalizedHashDecode(ZipCoder.java:136)
This is dueJDK-8243469 which changed the UTF-8 ZipCoder code to use a shared CharsetDecoder, which is not legal.
java.lang.IllegalStateException: Current state = CODING_END, new state = FLUSHED
at
java.base/java.nio.charset.CharsetDecoder.throwIllegalStateException(CharsetDecoder.java:998)
at
java.base/java.nio.charset.CharsetDecoder.flush(CharsetDecoder.java:681)
at
java.base/java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:810)
at
java.base/java.util.zip.ZipCoder.normalizedHashDecode(ZipCoder.java:136)
This is due
Attachments
Issue Links
- backported by
-
JDK-8260379 UTF8ZipCoder not thread-safe since JDK-8243469
-
- Closed
-
- relates to
-
JDK-8243469 Lazily encode name in ZipFile.getEntryPos
-
- Resolved
-
- links to
-
Commit openjdk/jdk16u/834962bc
-
Commit openjdk/jdk/1f47de5f
-
Review openjdk/jdk16u/7
-
Review openjdk/jdk/2163
(1 links to)