Skip to content

Duplicate property names in a single PropertySource like 2 @Property annotations on a test class should be reported #1232

@sdedic

Description

@sdedic

Expected Behavior

Fail the compilation or test execution on duplicate property names. Duplicates are OK on different levels (conf file - test class - test method).

Actual Behaviour

Earlier value silently ignored

Steps To Reproduce

  1. Clone [email protected]:sdedic/micronaut-dbbugs2.git ; branch value_annotation_inconsistent
  2. Debug PropertyExampleTest, observe test.literal value injection

Environment Information

  • Ubuntu 22.04
  • JDK 21

Example Application

https://github.com/sdedic/micronaut-dbbugs2/tree/value_annotation_inconsistent

Version

4.7.6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions