Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

@Rest breaks when @Put,@Post,@Delete return void #1266

Copy link
Copy link
@niusounds

Description

@niusounds
Issue body actions
@Rest(converters = GsonHttpMessageConverter.class, rootUrl = "http://192.168.10.98:3000")
public interface Api {
    @Put("/{myId}")
    void updateStatus(StatusUpdate status, String myId);
}

says Ambiguous method call. error.

Error:(34, 25) エラー: exchangeの参照はあいまいです
RestTemplateのメソッド <T#1>exchange(String,HttpMethod,HttpEntity,Class,Map)とRestTemplateのメソッド <T#2>exchange(String,HttpMethod,HttpEntity,ParameterizedTypeReference,Map)の両方が一致します
T#1,T#2が型変数の場合:
メソッド <T#1>exchange(String,HttpMethod,HttpEntity,Class,Map)で宣言されているT#1はObjectを拡張します
メソッド <T#2>exchange(String,HttpMethod,HttpEntity,ParameterizedTypeReference,Map)で宣言されているT#2はObjectを拡張します

When I set return value to some class, it's OK.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.