Re: limitations on using enum as generic parameter
"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|
|_____|_____|
|===========|