Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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.

Comments
Post Details
Added on May 2 2019
0 comments
165 views