ivandasch commented on a change in pull request #8614:
URL: https://github.com/apache/ignite/pull/8614#discussion_r549086245
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/processors/platform/utils/PlatformUtils.java
##########
@@ -989,7 +990,9 @@ private static boolean knownMap(Object o) {
* @return Result.
*/
public static Object[] unwrapBinariesInArray(Object[] arr) {
- Object[] res = new Object[arr.length];
+ Class<?> compType = arr.getClass().getComponentType();
+
+ Object[] res = (Object[])Array.newInstance(compType, arr.length);
Review comment:
Great! It was strange, that here was untyped array. Great catch!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]