Dear All,
We all know EJB3 annotations are very, very clever things. Much cleverer than, for example, someone like me.
So here's my puzzle: if Java generics are implemented using erasure, such that type information is unavailable at runtime, how do the EJB3 annotations extract the type information in a case such as...
Code:
@OneToMany
List<Kitten> getKittens()
...in order to know we are talking about a List of Kittens, not just Objects?
The doco suggests EJB3 does indeed do this, but I'm fascinated to know how.
Thanks and great job guys!