mulesoft/mule-devkit — Issue #85: Cannot have a parameter annotated with @ ConnectionKey with the same name as @ Configurable field
Author: federecio
Created: 2012-01-24 21:46:45+00:00
State: open
Labels: BUG

The following does not work, the executing of the DevKit's Maven plugin fails and shows a stack trace when it should validate this scenario and show a descriptive error message.

The following is an example:

/**
* The user login username
*/
@Configurable
private String username;

...

/**
* Creates a connection to Jira by making a login call with the given credentials to the specified address.
* The login call, if successfull, returns a token which will be used in the subsequent calls to Jira.
*
* @param username the user login username
* @param password the user login password
* @param address the JIRA Server Soap address. It usually looks like https://<jira server hostname>/rpc/soap/jirasoapservice-v2 or http://<jira server hostname>/rpc/soap/jirasoapservice-v2
*/
@Connect
public void connect(@ConnectionKey String username, String password, String address) throws ConnectionException {
setClient(JiraClientFactory.getClient(address));
token = login(username, password);
}