Forum Stats

  • 3,875,115 Users
  • 2,266,806 Discussions


Generic type information during runtime - idea for implementation

user8382315 Member Posts: 1

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.