So, here's new webrev incorporating Johannes' suggestion:
http://cr.openjdk.java.net/~plevart/jdk-dev/RecordsDeserialization/webrev.02/
Peter
On 6/14/20 11:17 PM, Peter Levart wrote:
On 6/14/20 7:03 PM, Johannes Kuhn wrote:
Small suggestion: RecordSupport.defaultValueExtractorFor could be
written as:
return MethodHandles.empty(MethodType.methodType(pClass,
byte[].class, Object[].class));
It could then be inlined.
- Johannes
Thanks, Johannes. There is also a MethodHandles.zero(Class<?> type)
method as I found out.
Regards, Peter