Hi guys (and the hero ;))
Do you think there is a hope we can move (copy for compatibility) TypeLiteral to JSR 250?
Here is the rational behind it:
- CDI and JAXRS have more or less the same class
- JSONB needs it as well
Each spec can duplicate it but it makes the overall EE API inconsistent and the learning curve harder.
Since generics are really important in nowaday coding and the class itself if not that big I think JSR 250 can be a good place to put it.
Let me know if there is no hope at all and i'll give this feedback to JSONB, if there is a hope please give me some pointers to move forward.
My overall vision is to make TypeLiteral and GenericType (JAXRS) deprecated and support both current and JSR 250 new API to slowly support a single type in the whole stack.
wdyt?