Why does java decompiler does not save annotations [closed]
Asked Answered
S

1

5

Why a decompiled java files does not have any annotations in it?

Shortbread answered 5/3, 2013 at 8:37 Comment(0)
H
15

Some annotations have their retention set to source code only.

See the Annotation Retention Policy:

Annotation retention policy. The constants of this enumerated type describe the various policies for retaining annotations. They are used in conjunction with the Retention meta-annotation type to specify how long annotations are to be retained ..

.. SOURCE Annotations are to be discarded by the compiler.

Husbandman answered 5/3, 2013 at 8:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.