Frage

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

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top