take a look at the new class file api
the new Class-File API (Preview) allows to use an API that is always up to date and could minimize the work that needs to be done to support new java versions (once the Preview is over)
the new Class-File API (Preview) allows to use an API that is always up to date and could minimize the work that needs to be done to support new java versions (once the Preview is over)