Skip to content

Add AnnotationTarget.PROPERTY to @Secret annotation#78

Merged
aafanasev merged 1 commit into
masterfrom
fix/73-secret-annotation-target
Mar 28, 2026
Merged

Add AnnotationTarget.PROPERTY to @Secret annotation#78
aafanasev merged 1 commit into
masterfrom
fix/73-secret-annotation-target

Conversation

@aafanasev
Copy link
Copy Markdown
Owner

In Kotlin, writing @Secret val password: String targets the property, not the backing field. Since PROPERTY was missing from @Target, the compiler required @field:Secret for correct targeting — inconsistent with the README examples.

The IR transformer already handles both property and field annotations, so no plugin logic changes are needed.

Closes #73

Closes #73

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@aafanasev aafanasev force-pushed the fix/73-secret-annotation-target branch from 09cf615 to 41a726a Compare March 28, 2026 03:45
@aafanasev aafanasev merged commit 6683513 into master Mar 28, 2026
1 check passed
@aafanasev aafanasev deleted the fix/73-secret-annotation-target branch March 28, 2026 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Secret annotation missing AnnotationTarget.PROPERTY

1 participant