Java8 LambdaMetaFactory : T extends Object declared in interface ObjLongConsumer
posted 7 months ago
I am trying the below code to invoke setter for the Class SimpleBean and using LambdaMetaFactory.
But getting Exception as
.java:68: warning: [unchecked] unchecked call to accept(T,long) as a member of the raw type ObjLongConsumer
setterLambda.accept( target, id2);
where T is a type-variable:
T extends Object declared in interface ObjLongConsumer