Skip to content

[KSP2] Annotation values shouldn't be marked as default (synthetic origin) broken after PR #2424 #2425

@dstepanov

Description

@dstepanov

PR broke the working behaviour #2424

We have this annotation in Java:

...
public @interface EachProperty {

    @AliasFor(annotation = ConfigurationReader.class, member = ConfigurationReader.PREFIX)
    String value();

We have classes annotated with it, we are reading it's values and annotations on the values.

After the changes merged in the referenced PR, member argument is marked as default, which makes our code to ignore the value provided.

Image

You can see that the argument is marked as default because of it's synthetic origin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions