RFR: 8320001: javac crashes while adding type annotations to the return type of a constructor [v3]

Vicente Romero vromero at openjdk.org
Wed Nov 22 01:36:03 UTC 2023


On Wed, 22 Nov 2023 00:04:40 GMT, Werner Dietl <wmdietl at openjdk.org> wrote:

>> That seems worth considering to me as a potential follow-up. One note is that as far as I can tell the current `javax.lang.model` implementation doesn't allow retrieving type annotations on constructors, I don't think this issue is specific to class loading.
>
> @cushon Yes, at the moment we have to manually get to these annotations in the AST and from the classfile. Having a standard API for both source and bytecode would be nice.

I have created: https://bugs.openjdk.org/browse/JDK-8320562

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16774#discussion_r1401399225


More information about the compiler-dev mailing list