Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


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

Re: limitations on using enum as generic parameter

Path csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!weretis.net!feeder4.news.weretis.net!news.albasani.net!not-for-mail
From Lew <noone@lewscanon.com>
Newsgroups comp.lang.java.programmer
Subject Re: limitations on using enum as generic parameter
Date Fri, 11 Feb 2011 07:36:36 -0500
Organization albasani.net
Lines 39
Message-ID <ij3af9$d2i$1@news.albasani.net> (permalink)
References <76e9be77-f846-4559-82ec-1d774a8a6a0b@q36g2000yqn.googlegroups.com> <pjm9l6t5ag5r0jub4tn1votfl8llcqk3jl@4ax.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
X-Trace news.albasani.net TABJfJIxSHqGwGBLPdTgXHGdYmlguH0aOBqE6QkrWnWsJUSRWReu17XJOu6TqGlC+Vspt23OZjtGBOYxB1wiy/5mnom0zRPJX0udUXsECM5EotA+w2mrSvgIYnsECdQU
NNTP-Posting-Date Fri, 11 Feb 2011 12:35:53 +0000 (UTC)
In-Reply-To <pjm9l6t5ag5r0jub4tn1votfl8llcqk3jl@4ax.com>
Cancel-Lock sha1:wWluZ7vTjHltQ/W6EZ9r2KiZeag=
User-Agent Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7
Injection-Info news.albasani.net; logging-data="PM4Ikvj5KUBnELIUF1zFdnrRQ/RH+DQ6JtWsnKsSSgrZUipkyt+1WaR5gpcIuUGugf+weME1D4pu67dBmtUFgQJubCDeDhCR8tJchMBo/lg7tgWaDGdtQwwnx43sAJYx"; mail-complaints-to="abuse@albasani.net"
Xref csiph.com comp.lang.java.programmer:25849

Show key headers only | View raw


"dalamb@cs.queensu.ca" wrote, quoted or indirectly quoted someone who said :
>> (yes, I know it's in end-of-life, but it would be a bit of trouble
>> right now to go to 1.6 let alone 1.7

Roedy Green wrote:
> It is actually surprisingly easy. Just download the JDK. Install,
> uninstall the old JDK, set JAVA_HOME, optionally recompile the
> universe. Tell your IDE where your new JDK is.  I have yet to find a
> JDK 1.5 program that won't compile and run just fine under JDK 1.6.

It can happen and I've seen it, but they're rare.  A couple of the interfaces 
have changed, notably 'javax.sql.RowSet' and 'java.sql.ResultSet'.  Code that 
implements that interface for Java 5 will not compile correctly for 6 unless 
you implement the new methods.  Also, '@Override' raises a warning if the 
supertype is an interface in 5, but omitting it in that situation raises a 
warning in 6.

It is quite rare to run into the former (most people don't compile their own 
JDBC code, but some do).  The latter is a minor annoyance.

I haven't run into other scenarios where the transition is difficult. 
Normally it's as transparent as Roedy indicates.

> I generate 1.5 class files using the JDK 1.6 compiler with -target
>
> see http://mindprod.com/jgloss/jdk.html

-- 
Lew
Ceci n'est pas une fenĂȘtre.
.___________.
|###] | [###|
|##/  | *\##|
|#/ * |   \#|
|#----|----#|
||    |  * ||
|o *  |    o|
|_____|_____|
|===========|

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


Thread

limitations on using enum as generic parameter "dalamb@cs.queensu.ca" <david.alex.lamb@gmail.com> - 2011-02-08 09:50 -0800
  Re: limitations on using enum as generic parameter Lew <noone@lewscanon.com> - 2011-02-11 07:36 -0500
  Re: limitations on using enum as generic parameter Daniele Futtorovic <da.futt.news@laposte.net.invalid> - 2011-02-08 20:36 +0100
  Re: limitations on using enum as generic parameter Ken Wesson <kwesson@gmail.com> - 2011-02-08 19:46 +0100
  Re: limitations on using enum as generic parameter Roedy Green <see_website@mindprod.com.invalid> - 2011-02-10 22:50 -0800
  Re: limitations on using enum as generic parameter Roedy Green <see_website@mindprod.com.invalid> - 2011-02-10 22:47 -0800
  Re: limitations on using enum as generic parameter markspace <nospam@nowhere.com> - 2011-02-08 10:34 -0800
    Re: limitations on using enum as generic parameter Lew <lew@lewscanon.com> - 2011-02-08 10:38 -0800

csiph-web