Skip to content

Thrown an error when a private method has MVC annotations #372

@danielfireman

Description

@danielfireman

I've just ran into this problem. For instance:

public class PingRoute {
  @Path("/ping")
  @GET
   private ping() {
     return Results.ok()
   }
}

If I use(PingRoute.class), the ping endpoint is silently ignored. Although I know that we could easily add unit tests to find this error, I think that we could also follow a fail-fast approach and prevent the server from start (giving a nice error message).

What do you guys think? I am happy to give it a shot as soon I get some sort of thumbs up.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions