Results 1 to 2 of 2
- 12-03-2010, 09:07 PM #1
Member
- Join Date
- Dec 2010
- Posts
- 1
- Rep Power
- 0
Class is raw type warning missing?
I'm working on a project and I'm using Eclipse with the raw type for generics warning on. The warning shows up in all the places I would expect it, except if the method is static, then I get no warnings about raw classes. Is this just a bug in java/eclipse or is there a reason for this?
- 12-03-2010, 09:16 PM #2
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,561
- Rep Power
- 11
There's an explanation in The Fine Print chapter of Oracle's Generics Tutorial.
(all instances of a generic class have the same run-time class)
Similar Threads
-
Eclipse warning to type 'Comparable'
By Muskar in forum New To JavaReplies: 3Last Post: 11-25-2010, 07:54 PM -
Class, SubClass type (InstanceOf) Question
By indyjoel in forum New To JavaReplies: 6Last Post: 11-07-2010, 03:55 AM -
missing some import class(may be)
By waqar100 in forum New To JavaReplies: 6Last Post: 10-06-2010, 07:36 AM -
Primitive data type and class
By Roselicious in forum New To JavaReplies: 3Last Post: 04-19-2010, 03:27 PM -
Returned type changes if class is extended. How?
By Gelembjuk in forum New To JavaReplies: 10Last Post: 10-31-2008, 11:18 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks