users@jsr311.java.net

Re: rival _at_Path with reg exps [was: JAX-RS: _at_Path limited=false templates: (?!/).+(?<!/)]

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Thu, 03 Jul 2008 15:54:00 +0200

Hi Paul,
> There is a very simple workaround for your example: include some
> literal characters in the same or another path segment of one or both
> @Path declarations.
>
> My inclination is to say when one uses regexes be more careful. The
> runtime can report ambiguity and suggest how it might be resolved.
IMO the way with an explicit preference is easier. But that's a personal
opinion.

Stephan