Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-13349

Avoid ambiguous property warning for setter methods with multiple parameters

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 3.2.14
    • Fix Version/s: 3.2.15, 4.1.8, 4.2.1
    • Component/s: None
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      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?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              tristanh Tristan Hill
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 30 weeks, 3 days ago