users@jsr311.java.net

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

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 03 Jul 2008 16:10:13 +0200

Stephan Koops wrote:
> 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.
>

I think it is simpler to resolve that ambiguity more clearly using
existing mechanisms rather than introducing another one that resolves it
less clearly, especially so when one considers root resource classes
where assigning priorities to spread out information is often hard to
manage (even when it is not that spread out it can be a real pain e.g.
/etc/rc?.d scripts)

Paul.

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109