RFR: 8311102: Write annotations in the classfile dumped by SA

Ashutosh Mehra duke at openjdk.org
Tue Jul 11 19:15:54 UTC 2023


On Tue, 11 Jul 2023 07:41:01 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> What would be needed to make the Annotations appear in the "printall" command? I was somehow expecting to see at least something like "Annotation at xxxx".

I am not sure what all details `printall` is expected to emit out. Looking at the code, printall doesn't seem to use ClassWriter. It uses HTMLGenerator to format the method data. I can emit something like "Annotation at xxxx" but it would be more useful if it can display the contents of the annotations. Unfortunately HTMLGenerator doesn't understand Annotations at all. Probably it is better left for another task.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/14735#issuecomment-1631375871


More information about the serviceability-dev mailing list