Check Generic type

Using JMS which is not implemented with Generics, I decided to add some “genericity”. The problem is that, because of type erasure, I can’t use the simple instanceof operator, the solution I used is to pass the class of the Generic when I use it: import java.io.Serializable; public class Handler { public Handler() { super();… Continue reading Check Generic type