Reflection problem - Type Safety Warning

Posted by jax on Stack Overflow See other posts from Stack Overflow or by jax
Published on 2010-05-26T15:50:04Z Indexed on 2010/05/26 15:51 UTC
Read the original article Hit count: 173

Filed under:
Class<? extends Algorithm> alg = AlgorithmAllFrom9AndLastFrom10Impl.class   
Constructor<Algorithm> c = alg.getConstructors()[0];

For "alg.getConstructors()[0];" I am getting a warning in eclipse

Type safety: The expression of type Constructor needs unchecked conversion to conform to Constructor

How do I fix this?

© Stack Overflow or respective owner

Related posts about java