{"action":"created","issue":{"url":"https://api.github.com/repos/excilys/androidannotations/issues/1465","labels_url":"https://api.github.com/repos/excilys/androidannotations/issues/1465/labels{/name}","comments_url":"https://api.github.com/repos/excilys/androidannotations/issues/1465/comments","events_url":"https://api.github.com/repos/excilys/androidannotations/issues/1465/events","html_url":"https://github.com/excilys/androidannotations/issues/1465","id":87270402,"number":1465,"title":"RestClient code generation issue","user":{"login":"mdurieux","id":12842947,"avatar_url":"https://avatars.githubusercontent.com/u/12842947?v=3","gravatar_id":"","url":"https://api.github.com/users/mdurieux","html_url":"https://github.com/mdurieux","followers_url":"https://api.github.com/users/mdurieux/followers","following_url":"https://api.github.com/users/mdurieux/following{/other_user}","gists_url":"https://api.github.com/users/mdurieux/gists{/gist_id}","starred_url":"https://api.github.com/users/mdurieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdurieux/subscriptions","organizations_url":"https://api.github.com/users/mdurieux/orgs","repos_url":"https://api.github.com/users/mdurieux/repos","events_url":"https://api.github.com/users/mdurieux/events{/privacy}","received_events_url":"https://api.github.com/users/mdurieux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-11T09:09:52Z","updated_at":"2015-06-11T09:51:41Z","closed_at":null,"body":"i try to create a simple restClient \r\n\r\nhere is my RestClient Code :+1: \r\n\r\n@Rest(rootUrl = \"https://www.azerty.com/soa/stock/service/stock\",converters = { ProductMessageConverter.class, StringHttpMessageConverter.class })\r\npublic interface MyRestClient {\r\n    @Get(\"/all\")\r\n    ProductList getAll();\r\n\r\n    \r\n    @Delete(\"/id/{id}\")\r\n    void deleteById(Integer id);\r\n }\r\n\r\n\r\nWhen building the project I got this error :\r\n\r\nError:(40, 25) error: reference to exchange is ambiguous\r\nboth method <T#1>exchange(String,HttpMethod,HttpEntity<?>,Class<T#1>,Map<String,?>) in RestTemplate and method <T#2>exchange(String,HttpMethod,HttpEntity<?>,ParameterizedTypeReference<T#2>,Map<String,?>) in RestTemplate match\r\nwhere T#1,T#2 are type-variables:\r\nT#1 extends Object declared in method <T#1>exchange(String,HttpMethod,HttpEntity<?>,Class<T#1>,Map<String,?>)\r\nT#2 extends Object declared in method <T#2>exchange(String,HttpMethod,HttpEntity<?>,ParameterizedTypeReference<T#2>,Map<String,?>)\r\n\r\n\r\nAnd I see this class is generated by Android-annotation :\r\n\r\npublic final class MyRestClient_\r\n    implements MyRestClient\r\n{\r\n\r\n    private String rootUrl;\r\n    private RestTemplate restTemplate;\r\n\r\n    public MyRestClient_(Context context) {\r\n        rootUrl = \"https://www.azerty.com/soa/stock/service/stock\";\r\n        restTemplate = new RestTemplate();\r\n        restTemplate.getMessageConverters().add(new ProductMessageConverter());\r\n        restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\r\n    }\r\n\r\n    @Override\r\n    public ProductList getAll() {\r\n        return restTemplate.exchange(rootUrl.concat(\"/all\"), HttpMethod.GET, null, ProductList.class).getBody();\r\n    }\r\n\r\n    @Override\r\n    public void deleteById(Integer id) {\r\n        {\r\n            HashMap<String, Object> urlVariables = new HashMap<String, Object>();\r\n            urlVariables.put(\"id\", id);\r\n//ERROR IS BECAUSE OF THE NEXT LINE            \r\nrestTemplate.exchange(rootUrl.concat(\"/id/{id}\"), HttpMethod.DELETE, null, null, urlVariables);\r\n        }\r\n    }\r\n\r\n}"},"comment":{"url":"https://api.github.com/repos/excilys/androidannotations/issues/comments/111071071","html_url":"https://github.com/excilys/androidannotations/issues/1465#issuecomment-111071071","issue_url":"https://api.github.com/repos/excilys/androidannotations/issues/1465","id":111071071,"user":{"login":"mdurieux","id":12842947,"avatar_url":"https://avatars.githubusercontent.com/u/12842947?v=3","gravatar_id":"","url":"https://api.github.com/users/mdurieux","html_url":"https://github.com/mdurieux","followers_url":"https://api.github.com/users/mdurieux/followers","following_url":"https://api.github.com/users/mdurieux/following{/other_user}","gists_url":"https://api.github.com/users/mdurieux/gists{/gist_id}","starred_url":"https://api.github.com/users/mdurieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdurieux/subscriptions","organizations_url":"https://api.github.com/users/mdurieux/orgs","repos_url":"https://api.github.com/users/mdurieux/repos","events_url":"https://api.github.com/users/mdurieux/events{/privacy}","received_events_url":"https://api.github.com/users/mdurieux/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T09:51:41Z","updated_at":"2015-06-11T09:51:41Z","body":"3.2\nLe 11 juin 2015 11:50 AM, \"Csaba Kozák\" <notifications@github.com> a écrit :\n\n> I guess you are using Spring for Android 2.0. We only support that from AA\n> version 3.3. What is the AA version you are using?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/excilys/androidannotations/issues/1465#issuecomment-111053424>\n> .\n>\n"}}