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 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: References: <76e9be77-f846-4559-82ec-1d774a8a6a0b@q36g2000yqn.googlegroups.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: 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 "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| |_____|_____| |===========|