I understand that if I am using a generic method or generic class as a raw type and my code has not been compiled,the compiler warns me of using it as a raw type.
But if i am compiling a generic code separately and then using that compiled class in my new project,how exactly does the compiler warn me "The given class is generic and it should be parametrized". Due to type erasure the .class file is purely pre-generic code and it must not be knowing whether it is generic or not
To make my point clearer,if in my md.jar I have a generic class Employee which has been compiled and a pre-generic class file(Employee.class) has been generated for it
Now ,I create a new project ,say DevMon and include md.jar in my build-path,how does the compiler warn me of Employee class being generic even though its type has been fully erased