File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generics compiler error

 
Bob Sturim
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using generics in a simple class. I'm getting a compile time error and for the life of me, I can't figure it out. Any held would be appreciated. My class is:



BaseDTO is a base class which, for the purposes of this discussions, contains a single property, Long id.

The compiler complains at the two put statements:



Thanks!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic