Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #25476 > unrolled thread
| Started by | Daniele Futtorovic <da.futt.news@laposte.net.invalid> |
|---|---|
| First post | 2011-02-09 19:41 +0100 |
| Last post | 2011-02-09 18:40 -0500 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.java.programmer
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: limitations on using enum as generic parameter Daniele Futtorovic <da.futt.news@laposte.net.invalid> - 2011-02-09 19:41 +0100
Re: limitations on using enum as generic parameter Lew <noone@lewscanon.com> - 2011-02-09 18:40 -0500
| From | Daniele Futtorovic <da.futt.news@laposte.net.invalid> |
|---|---|
| Date | 2011-02-09 19:41 +0100 |
| Subject | Re: limitations on using enum as generic parameter |
| Message-ID | <iiun45$tha$1@news.eternal-september.org> |
On 09/02/2011 19:07, Lew allegedly wrote: > 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. Goodness, Lew! No, my statement is founded on the very same understanding as yours. It just happens to be wrong (the statement). Could you please stop exposing my mistake in such punctilious a manner? :) I vaguely seemed to remember some kind of native call or the like further down the call to #getEnumConstants. Hence the reference to the VM. I cannot tell where I got that from, and should have challenged that assumption. Yes, #getEnumConstants is a method that uses reflection to achieve its function. Can I crawl back under my rock now? -- DF.
[toc] | [next] | [standalone]
| From | Lew <noone@lewscanon.com> |
|---|---|
| Date | 2011-02-09 18:40 -0500 |
| Message-ID | <iiv8la$ps8$1@news.albasani.net> |
| In reply to | #25476 |
Daniele Futtorovic wrote: > Goodness, Lew! No, my statement is founded on the very same > understanding as yours. It just happens to be wrong (the statement). > Could you please stop exposing my mistake in such punctilious a manner? :) I apologize. I'm not trying to expose a mistake. I really thought there was something there for me to learn. I'm truly sorry. You've been here long enough to know I've made much more foolish mistakes than yours. -- Lew Ceci n'est pas une fenĂȘtre. .___________. |###] | [###| |##/ | *\##| |#/ * | \#| |#----|----#| || | * || |o * | o| |_____|_____| |===========|
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web