Skip to content
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

@niusounds

Description

@niusounds
@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.

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