--- a/src/jdk.jfr/share/classes/jdk/jfr/consumer/ObjectFactory.java Fri May 17 15:53:21 2019 +0200
+++ b/src/jdk.jfr/share/classes/jdk/jfr/consumer/ObjectFactory.java Fri May 17 16:02:27 2019 +0200
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2019, 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
@@ -78,7 +78,7 @@
if (value instanceof Object[]) {
return createTyped(valueDescriptors, id, (Object[]) value);
}
- throw new InternalError("Object factory must have struct type");
+ throw new InternalError("Object factory must have struct type. Type was " + value.getClass().getName());
}
abstract T createTyped(List<ValueDescriptor> valueDescriptors, long id, Object[] values);