users@jax-rs-spec.java.net

[jax-rs-spec users] Clarification on params

From: Markus KARG <markus_at_headcrashing.eu>
Date: Sat, 31 Oct 2015 16:41:07 +0100

Spec Leads,

Experts,

 

after a session on Thursday I was asked two simple questions for which I
couldn't find the authoritative answer in the spec:

 

(1) MAY one place the keyword final at a field which is annotated as
@XxxParam?

 

(2) MAY a POJO used as @BeanParam have @XxxParam annotations placed at
constructor parameters?

 

I would say "yes" to both as neither the spec, nor the JavaDocs, clearly
exclude it -- but possibly it might be technically impossible and we simply
forgot to forbid these use cases in the spec?

 

What is your opinion?

 

Thanks

-Markus