Skip to content

ConfigurationPropertyName equals method fails when values start the same #14665

@philwebb

Description

@philwebb

Raised by @spencergibb in a Spring Cloud originally but ultimately the problem is in ConfigurationPropertyName as shown by the following test:

    @Test
    public void equalsWhenStartsWith() {
        ConfigurationPropertyName n1 = ConfigurationPropertyName.of("my.sources[0].xame");
        ConfigurationPropertyName n2 = ConfigurationPropertyName
                .of("my.sources[0].xamespace");
        assertThat(n1).isNotEqualTo(n2);
    }

Metadata

Metadata

Assignees

Labels

type: blockerAn issue that is blocking us from releasingtype: regressionA regression from a previous release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions