mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8189977: Improve permission portability
Reviewed-by: rriggs
This commit is contained in:
parent
a7c9c021ba
commit
0b873290a4
2 changed files with 30 additions and 0 deletions
|
@ -1293,6 +1293,10 @@ public class Hashtable<K,V>
|
|||
length--;
|
||||
length = Math.min(length, origlength);
|
||||
|
||||
if (length < 0) { // overflow
|
||||
length = origlength;
|
||||
}
|
||||
|
||||
// Check Map.Entry[].class since it's the nearest public type to
|
||||
// what we're actually creating.
|
||||
SharedSecrets.getJavaObjectInputStreamAccess().checkArray(s, Map.Entry[].class, length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue