This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Java in General and the fly likes Generics compiler error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Generics compiler error" Watch "Generics compiler error" New topic
Author

Generics compiler error

Bob Sturim
Greenhorn

Joined: Sep 19, 2005
Posts: 2
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generics compiler error