Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Type mismatch error in ParamConverterProvider

 
Anirudh Gupta
Ranch Hand
Posts: 49
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

While attempting to write a custom ParamConverterProvider I am facing a compile error which is a little strange. I am quiet sure it is trivial but am not able to quiet point it out.
The error is in the provider class on the return statement. "Type mismatch: cannot convert from DemoParamConverter to ParamConverter<T>"


Attaching the 3 artifacts of concern,

1. Provider


2. ParamConverter


3. The type to be converted
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
although i have not ran it, i guess error is due to type information missing in private final DemoParamConverter dpc = new DemoParamConverter() line.
Btw, please post code of DemoParamConverter class.
 
Anirudh Gupta
Ranch Hand
Posts: 49
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abhay,

The 2nd code item listing IS that very class - DemoParamConverter.class.

Thanks.
Anirudh.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic