Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #25648
| From | Joshua Cranmer <Pidgeot18@verizon.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: JLS 3/e -- Lots Of Errors |
| Date | 2011-02-05 00:15 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <iiimec$dh1$1@news.eternal-september.org> (permalink) |
| References | <iiflvc$keg$2@lust.ihug.co.nz> <iii9ku$58c$1@lust.ihug.co.nz> |
On 02/04/2011 08:37 PM, Lawrence D'Oliveiro wrote: > Here’s another fun one. > > In section 4.8, on page 58, it says: > > The use of raw types is allowed only as a concession to compatibility of > legacy code. The use of raw types in code written after the introduction > of genericity into the Java programming language is strongly > discouraged. It is possible that future versions of the Java programming > language will disallow the use of raw types. > > (That last sentence is in bold.) However, in the discussion on page 136: > > Note that expression names may be qualified by type names, but not by > types in general. I trimmed this down to the key sentence. The discussion notes that it's a type name *and not a type* that defines the expression name. Raw types are generic types that are not used in a generic manner, e.g., in class instance creation expressions. I suspect this may have been done, in part, to emphasize that Java's generics are not C++'s templates. -- Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Re: JLS 3/e -- Lots Of Errors Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-02-05 14:37 +1300
Re: JLS 3/e -- Lots Of Errors Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-02-05 00:15 -0500
Re: JLS 3/e -- Lots Of Errors Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-02-05 10:10 -0500
Re: JLS 3/e -- Lots Of Errors Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-02-05 19:41 +1300
Re: JLS 3/e -- Lots Of Errors Lew <noone@lewscanon.com> - 2011-02-04 23:59 -0500
Re: JLS 3/e -- Lots Of Errors Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-02-05 19:42 +1300
Re: JLS 3/e -- Lots Of Errors Lew <noone@lewscanon.com> - 2011-02-05 09:34 -0500
Re: JLS 3/e -- Lots Of Errors "javax.swing.JSnarker" <gharriman@boojum.mit.edu> - 2011-02-05 12:52 -0500
csiph-web