Results 1 to 2 of 2
  1. #1
    Syntastic is offline Member
    Join Date
    Dec 2010
    Posts
    1
    Rep Power
    0

    Default 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?

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default

    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

  1. Eclipse warning to type 'Comparable'
    By Muskar in forum New To Java
    Replies: 3
    Last Post: 11-25-2010, 08:54 PM
  2. Class, SubClass type (InstanceOf) Question
    By indyjoel in forum New To Java
    Replies: 6
    Last Post: 11-07-2010, 04:55 AM
  3. missing some import class(may be)
    By waqar100 in forum New To Java
    Replies: 6
    Last Post: 10-06-2010, 08:36 AM
  4. Primitive data type and class
    By Roselicious in forum New To Java
    Replies: 3
    Last Post: 04-19-2010, 04:27 PM
  5. Returned type changes if class is extended. How?
    By Gelembjuk in forum New To Java
    Replies: 10
    Last Post: 10-31-2008, 12:18 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •