Skip to content

Avoid ambiguous property warning for setter methods with multiple parameters [SPR-13349] #17933

Closed
@spring-projects-issues

Description

@spring-projects-issues

Tristan Hill opened SPR-13349 and commented

I'm getting this warning on application initialization:

WARN  org.springframework.beans.GenericTypeAwarePropertyDescriptor  - Invalid JavaBean property 'endpoint' being accessed! Ambiguous write methods found next to actually used [public void com.amazonaws.AmazonWebServiceClient.setEndpoint(java.lang.String) throws java.lang.IllegalArgumentException]: [public void com.amazonaws.AmazonWebServiceClient.setEndpoint(java.lang.String,java.lang.String,java.lang.String)]

The bean configuration is:

<bean class="com.amazonaws.services.s3.AmazonS3Client" id="s3Client">
    <constructor-arg index="0" ref="awsDefaultCredentialsProviderChain"/>
    <constructor-arg index="1" ref="awsClientConfiguration"/>
    <property name="endpoint" value="value"/>
</bean>

Is the method really ambiguous since only a single string parameter is provided as argument?


Affects: 3.2.14

Issue Links:

Referenced from: commits eb5b147, 42d5780, 05a16a1

Backported to: 4.1.8, 3.2.15

Metadata

Metadata

Assignees

Labels

status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions