Amazon released version 1.4.0 of their Java SDK for AWS today, with the very welcome addition com.amazonaws.regions.Region, which describes the available regions and their services.
This class also provides the createClient() factory method for all client classes (subclassing com.amazonaws.AmazonWebServiceClient).
I don't understand how I can pass a custom AWSCredentialProvider to this method, as the second expected argument is a org.apache.http.client.CredentialsProvider. I don't even understand how the method can work, because it uses Java reflection to try to find a constructor for the client classes with a org.apache.http.client.CredentialsProvider second argument, which does not exist.
It looks to me like this is a mistake in the code of the SDK, which has only be tested with the DefaultAWSCredentialsProviderChain.
Am I using this class incorrectly, or can I expect this mistake to be fixed soon ?
By the way, the lastest Javadoc does not include the com.amazonaws.regions package yet.