Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Generics compiler error  RSS feed

 
Bob Sturim
Greenhorn
Posts: 2
  • 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!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!