[jdk17u] RFR: 8277093: Vector throws StreamCorruptedException for a missing class of an element
    Roger Riggs 
    rriggs at openjdk.java.net
       
    Wed Nov 17 14:44:15 UTC 2021
    
    
  
Java.util.Vector reports a StreamCorruptedException instead of ClassNotFoundException due to the incorrect handling of a missing class by ObjectInputStream.GetField.get(name, val). (See JDK-8273660)
Vector checks the deserialized 'data' field for null and throws StreamCorruptedException.
The null can be a reflection of more than one condition, including the field is null, the field is not present in the stream, and the field is null because one of the array elements could not be deserialized due to a missing class. 
The CSR includes a detailed description: JDK-8277153
-------------
Commit messages:
 - 8277093: Vector throws StreamCorruptedException for a missing class of an element
Changes: https://git.openjdk.java.net/jdk17u/pull/279/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk17u&pr=279&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8277093
  Stats: 143 lines in 2 files changed: 142 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk17u/pull/279.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk17u pull/279/head:pull/279
PR: https://git.openjdk.java.net/jdk17u/pull/279
    
    
More information about the jdk-updates-dev
mailing list