This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Change to posix.cc to set gnu.java.util.zoneinfo.dir


Tom Tromey wrote:
"Marco" == Marco Trudel <mtrudel@gmx.ch> writes:

Marco> When the topic is already on the table. What about mingw? There's no Marco> zoneinfo stuff... Does that lead to runtime errors with the new code?

It looks like it falls back to the old code.  I'm not 100% sure
though.  Could you try it?

I only run this little test:


public class TimeZoneTest
{
	public static void main(String[] args)
	{
		TimeZone tz = new SimpleTimeZone(3600000,
                "Europe/Paris",
                Calendar.MARCH, -1, Calendar.SUNDAY,
                3600000, SimpleTimeZone.UTC_TIME,
                Calendar.OCTOBER, -1, Calendar.SUNDAY,
                3600000, SimpleTimeZone.UTC_TIME,
                3600000);
		System.out.println(tz);
		System.out.println(tz.inDaylightTime(new Date()));
	}
}

But the fallback (rev 122742) seems to work :-)


thanks Marco


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]