Type argument T is not within bounds of type-variable T(Java Generic) [duplicate]
问题 This question already has an answer here : Java generics issue: Class “not within bounds of type-variable” error. (1 answer) Closed 4 years ago . I'm implementing a generic AVL tree but I'm having some compilation error. My AVL Tee has to deal with Node<T> of type T. In the example, the type is Event class.I want to compare the node. But each type of data has to be compared differently, for that, i'm passing the comparison to the data itself to do the comparison. I tried to make the Node