2 Replies Latest reply on Feb 26, 2007 6:00 PM by Tino Nitze

    Why not  T Component.getInstance(Class<T> clazz) ?

    Tino Nitze Newbie

      This is no real issue it's just for my interest, I strongly believe there must be a reason for this. It's just that I don't get it :). Maybe someone can help me out here:
      I catch myself quite often overriding methods which are offered by Seam and look like

      Object Component.getInstance(Class clazz)

      with the corresponding generalized implementation
      <T> T Component.getInstance(Class<T> clazz)

      Why is it not implemented like that per default?, it would safe quite a few casts I guess...