On Fri, 2008-06-27 at 11:41 -0400, Marc Hadley wrote:
> On Jun 27, 2008, at 4:30 AM, Martin Grotzke wrote:
> >> See third paragraph of:
> >>
> >> https://jsr311.dev.java.net/nonav/javadoc/javax/ws/rs/DefaultValue.html
> >>
> >> Essentially you get the Java-defined default value for the primitive
> >> type.
> > Thanx, good to get closer and closer to jax-rs :)
> >
> > Btw: IMHO it would be good to have such a hint in the spec (pdf),
> > because I'm not reading the @DefaultValue javadoc when I'm not using
> > it.
> >
> I added this to section 3.2 of the spec a while back (possibly after
> the public review draft went out):
>
> "The DefaultValue annotation may be used to supply a default value for
> some of the above, see the Javadoc for DefaultValue for usage details
> and rules for generating a value in the absence of this annotation and
> the requested data."
>
> I'll be publishing a new draft shortly that will contain this.
Great!
Cheers,
Martin
>
> Marc.
>
> >
> >
> >>
> >> I need to think about this some more but initially I like the idea of
> >> an @Required in the JSR API.
> >>
> >> Marc.
> >>
> >> ---
> >> Marc Hadley <marc.hadley at sun.com>
> >> CTO Office, Sun Microsystems.
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> >> For additional commands, e-mail: users-help_at_jersey.dev.java.net
> >
>
> ---
> Marc Hadley <marc.hadley at sun.com>
> CTO Office, Sun Microsystems.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net