> In 2007, the time period for daylight savings time is
> being expanded. Does anyone know if these rules are
> enforced in sun's java classes, or retrieved from the
> underlying operating system?
>
The rules are enforced if the designers are aware of them. Recently in Australia the DST was changed due to a special occasion and Sun released a patch:
http://java.sun.com/developer/technicalArticles/Intl/AusTimeZone/
> The question is will daylight savings time be
> incorrect in 2007 for java programs?
Not likely.
I agree, you will have to recompile your programs using a patched JDK. I like the idea, but in practice, it will be much harder to implement. If they just got rid of daylight saving time, it would be much easier on programmers and hardware. There are usually checkboxes to unclick if there is no DST.
Did I misunderstand something? You ask a TimeZone when the start and end of something like daylight savings time is. This data is stored within code I don't have access to - sun.util.calendar.ZoneInfo and sun.util.calendar.ZoneInfoFile (according to the source code for java.util.TimeZone). So once you have a new JVM the code you have to ask the start and end days will get the correct answer.