Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.lang.java.programmer > #4650

Re: Java generics and type erasure

From Lew <noone@lewscanon.com>
Newsgroups comp.lang.java.programmer
Subject Re: Java generics and type erasure
Date 2011-05-27 10:22 -0400
Organization albasani.net
Message-ID <iroc18$oho$1@news.albasani.net> (permalink)
References (13 earlier) <irlega$3kp$1@news.albasani.net> <4ddf0617$0$67777$c30e37c6@exi-reader.telstra.net> <3f7c1f48-f025-48af-b6bd-20463f6651db@e13g2000vbo.googlegroups.com> <irncss$k84$2@news.albasani.net> <4ddf5c23$0$67779$c30e37c6@exi-reader.telstra.net>

Show all headers | View raw


Esmond Pitt wrote:
> Lew wrote:
>> erasure (the way I look at it) is a runtime phenomenon. I don't care if
>> it happened during compilation or class load.

> That doesn't make sense. Erasure is a state that has already been attained
> prior to execution. It can't be a runtime phenomenon as there hasn't been any
> runtime yet: indeed there may never be a runtime for it to be a phenomenon of,
> e.g. if the class is immediately recompiled prior to any execution, or indeed
> never executed at all.

You elided the part of my statement that answers your objection.

What I *SAID* that you chopped out was:


"... it's not the process of erasure that interests me, but the static state 
of having or not having been erased. Not erased - compile time.  Erased - 
runtime.  Therefore erasure (the way I look at it) is a runtime phenomenon.  I 
don't care if it happened during compilation or class load."

It makes perfect sense.  You will note that I did NOT say that which you 
refuted; I did NOT say that it got erased at runtime.  I said that the runtime 
phenomenon is the static state of generics HAVING ALREADY BEEN ERASED SOMETIME 
*PRIOR*.  It's the *static* state to which I refer.  See, Esmond Pitt?

You did not contradict that at all, Esmond Pitt.

Get it now, Esmond Pitt?

-- 
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Java generics and type erasure Marcin Pietraszek <m.pietraszek@gmail.com> - 2011-05-23 13:18 -0700
  Re: Java generics and type erasure "John B. Matthews" <nospam@nospam.invalid> - 2011-05-23 22:54 -0400
    Re: Java generics and type erasure Lew <noone@lewscanon.com> - 2011-05-24 01:45 -0400
      Re: Java generics and type erasure Marcin Pietraszek <m.pietraszek@gmail.com> - 2011-05-24 12:39 -0700
      Re: Java generics and type erasure Ian Shef <invalid@avoiding.spam> - 2011-05-24 20:04 +0000
        Re: Java generics and type erasure Lew <noone@lewscanon.com> - 2011-05-24 17:06 -0400
          Re: Java generics and type erasure Ian Shef <invalid@avoiding.spam> - 2011-05-24 23:05 +0000
            Re: Java generics and type erasure Susan Calvin <s.calvin@usr.invalid> - 2011-05-25 00:13 +0000
              Re: Java generics and type erasure Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-26 10:18 +1200
                Re: Java generics and type erasure Susan Calvin <s.calvin@usr.invalid> - 2011-05-26 01:12 +0000
                Re: Java generics and type erasure Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-26 13:59 +1200
                Re: Java generics and type erasure Susan Calvin <s.calvin@usr.invalid> - 2011-05-26 04:18 +0000
                Re: Java generics and type erasure Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-26 18:48 +1200
                Re: Java generics and type erasure Esmond Pitt <esmond.pitt@bigpond.com> - 2011-05-26 18:34 +1000
                Re: Java generics and type erasure Lew <noone@lewscanon.com> - 2011-05-26 07:45 -0400
                Re: Java generics and type erasure "John B. Matthews" <nospam@nospam.invalid> - 2011-05-26 15:25 -0400
                Re: Java generics and type erasure Esmond Pitt <esmond.pitt@bigpond.com> - 2011-05-27 12:01 +1000
                Re: Java generics and type erasure Lew <noone@lewscanon.com> - 2011-05-26 22:15 -0400
                Re: Java generics and type erasure Esmond Pitt <esmond.pitt@bigpond.com> - 2011-05-27 13:04 +1000
                Re: Java generics and type erasure Lew <noone@lewscanon.com> - 2011-05-27 01:27 -0400
                Re: Java generics and type erasure Esmond Pitt <esmond.pitt@bigpond.com> - 2011-05-27 18:07 +1000
                Re: Java generics and type erasure Lew <noone@lewscanon.com> - 2011-05-27 10:18 -0400
                Re: Java generics and type erasure Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-05-27 17:03 +0000
                Re: Java generics and type erasure Lew <noone@lewscanon.com> - 2011-05-27 13:27 -0400
                Re: Java generics and type erasure Esmond Pitt <esmond.pitt@bigpond.com> - 2011-05-30 15:19 +1000
                Re: Java generics and type erasure Tom McGlynn <taqmcg@gmail.com> - 2011-05-26 19:53 -0700
                Re: Java generics and type erasure Lew <noone@lewscanon.com> - 2011-05-27 01:30 -0400
                Re: Java generics and type erasure Esmond Pitt <esmond.pitt@bigpond.com> - 2011-05-27 18:09 +1000
                Re: Java generics and type erasure Lew <noone@lewscanon.com> - 2011-05-27 10:22 -0400
                Re: Java generics and type erasure Esmond Pitt <esmond.pitt@bigpond.com> - 2011-05-30 15:23 +1000
                Re: Java generics and type erasure Lew <noone@lewscanon.com> - 2011-05-30 02:35 -0400

csiph-web