mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 20:14:43 +02:00
8189985: Improve tabular data portability
Reviewed-by: dfuchs, mchung, skoivu
This commit is contained in:
parent
b825e581a9
commit
42855ed2a2
1 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -45,6 +45,7 @@ import java.util.LinkedHashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
import jdk.internal.misc.SharedSecrets;
|
||||||
|
|
||||||
// jmx import
|
// jmx import
|
||||||
//
|
//
|
||||||
|
@ -922,6 +923,8 @@ public class TabularDataSupport
|
||||||
throws IOException, ClassNotFoundException {
|
throws IOException, ClassNotFoundException {
|
||||||
in.defaultReadObject();
|
in.defaultReadObject();
|
||||||
List<String> tmpNames = tabularType.getIndexNames();
|
List<String> tmpNames = tabularType.getIndexNames();
|
||||||
indexNamesArray = tmpNames.toArray(new String[tmpNames.size()]);
|
int size = tmpNames.size();
|
||||||
|
SharedSecrets.getJavaObjectInputStreamAccess().checkArray(in, String[].class, size);
|
||||||
|
indexNamesArray = tmpNames.toArray(new String[size]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue