7

I tried to decompile a .class file that contains JUnit tests. I read the byte code, but I did not see any clue of the @Test annotation(it's used in the java source code).

As metadata, how are annotations represented in bytecode?

0

1 Answer 1

7

Annotations appear just before the byte code of the thing it is associated with. If you are not seeing the annotations it could be an old de-compiler (most of them are)

Sign up to request clarification or add additional context in comments.

2 Comments

I used JBVD. What are the new ones that are able to decompile annotations?
I use ObjectWeb's ASM, this is not a de-compiler but reads everything which is there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.