Skip to Main Content

Java APIs

Generic type information during runtime - idea for implementation

user8382315May 2 2019 — edited May 2 2019

Currently generic type information is saved via annotations - as in JPA lists. I propose to save all generic type information as special javax annotations during compilation. This would enable reflection of generic information during runtime, which is currently impossible, since generic info is deleted during compilation. Library creators have to create custom annotations to have generic type information available during runtime, at the moment. I apologize if this idea is based on outdated information.

Post Details
Added on May 2 2019