Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #25849
| From | Lew <noone@lewscanon.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: limitations on using enum as generic parameter |
| Date | 2011-02-11 07:36 -0500 |
| Organization | albasani.net |
| Message-ID | <ij3af9$d2i$1@news.albasani.net> (permalink) |
| References | <76e9be77-f846-4559-82ec-1d774a8a6a0b@q36g2000yqn.googlegroups.com> <pjm9l6t5ag5r0jub4tn1votfl8llcqk3jl@4ax.com> |
"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 | Next — Previous in thread | Next in thread | Find similar
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