Hi all,
I often create sub-resources that have @Path("/") annotations. When I do
this, I get a warning in the logs:
WARNING: The (sub)resource method getWholeCustomer in resources.CustomerNav
contains empty path annotation.
If memory serves, I get the same message with @Path("") and if I simply
leave the path annotation off and just leave @GET or whatever HTTP method
annotation (though it's been a while since I bothered to verify this)
My impression is that this warning doesn't seem to actually represent a
real problem; at least, the code works as intended and, so far as I read
the spec, this is a totally expected/intended means of defining service
methods.
What's the message about? Is it actually something I should care about? If
so, why, and how should I achieve what I'm currently doing? If it's not an
actual meaningful message, why is it even emitted?
Cheers,
Simon
--
Simon Roberts
Certified Professional Photographer
http://dancingcloudphotography.com
(303) 249 3613