• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java8 LambdaMetaFactory : T extends Object declared in interface ObjLongConsumer

 
Vishu Shukla
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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
1 warning



 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!