Thomas said:
Try it. It wont.
1.5 has the undocumented and unsupported -source jsr14 (IIRC).
Does anyone have any figures for which versions browsers have installed?
The online installer for Windows should have updated most to 1.5.
Windows/Solaris/Linux users that have used offline installers in the
last year and three quarters will presumably mostly installed 1.5. No
idea about Mac users, other than Apple is usually around a year behind.
Most of the Windows systems I've tried it on only have 1.4.2_03, so
that's my target at this point. But apparently even that's not enough
- there are things that fail mysteriously under that version that work
fine when you have the 1.5 JRE installed (e.g. JFrame.add() vs
JFrame.setContentPane()), so you absolutely have to test on a system
that only has 1.4.2 installed.
The advantages of using Generics don't seem enough to be worth the risk
that something's going to be behave unpredictably on another system, so
I'm just getting used to having my code littered with casts. The fact
that it took till version 1.5 of Java until there were typed resizable
collections in the language is a little baffling to me.