mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8280642: ObjectInputStream.readObject should throw InvalidClassException instead of IllegalAccessError
Reviewed-by: naoto, mchung
This commit is contained in:
parent
d95de5c7fe
commit
fdd9ca74bd
2 changed files with 13 additions and 8 deletions
|
@ -1995,6 +1995,10 @@ public class ObjectInputStream
|
|||
}
|
||||
} catch (ClassNotFoundException ex) {
|
||||
resolveEx = ex;
|
||||
} catch (IllegalAccessError aie) {
|
||||
IOException ice = new InvalidClassException(aie.getMessage());
|
||||
ice.initCause(aie);
|
||||
throw ice;
|
||||
} catch (OutOfMemoryError memerr) {
|
||||
IOException ex = new InvalidObjectException("Proxy interface limit exceeded: " +
|
||||
Arrays.toString(ifaces));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue