mmazi / rescu

A lightweight json Rest client utility for JAX-RS
MIT License
65 stars 60 forks source link

Allow for default interface methods #102

Open Flemingjp opened 6 years ago

Flemingjp commented 6 years ago

Could the interfaces have default methods that don't produce a http call? Current attempts throws exceptions of missing annotations.

interface MyService {

    @GET
    @Path("bar")
    String getBar();

    @GET
    @Path("foo")
    String getFoo();

    default String getFooBar() {
        return String.format("%s-%s", getFoo(), getBar());
    }
}
mmazi commented 6 years ago

A pull request to fix this will be welcome, and merged promptly :)