|Re: Constructing instances of value-bound classes [message #567271 is a reply to message #567214]
||Mon, 11 January 2010 09:09
| Stephan Herrmann
Registered: July 2009
Eugene Hutorny wrote:|
> Another related question - from the documentation I got impression that
> the generic's wildcards can be used for the value bound types, something
> Person<?> woman = new Person<@Gender.Female>("Lisa");
> but I did not succeed with this. Is this feature supported?
Sorry, no. Currently, the "?" is only used in the standard Java way
to denote an unknown type, not an unknown value.
Powered by FUDForum
. Page generated in 0.01558 seconds