提交 6851da7c 编写于 作者: M mchinnathamb

8189985: Improve tabular data portability

Reviewed-by: dfuchs, robm
上级 f85f2c6a
/*
* 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.
*
* 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.Map;
import java.util.Set;
import sun.misc.SharedSecrets;
// jmx import
//
......@@ -911,6 +912,8 @@ public class TabularDataSupport
throws IOException, ClassNotFoundException {
in.defaultReadObject();
List<String> tmpNames = tabularType.getIndexNames();
indexNamesArray = tmpNames.toArray(new String[tmpNames.size()]);
int size = tmpNames.size();
SharedSecrets.getJavaOISAccess().checkArray(in, String[].class, size);
indexNamesArray = tmpNames.toArray(new String[size]);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册