gcc/libjava/java/lang
Jakub Jelinek b3502aa8d4 re PR libgcj/17002 (java.util.TimeZone.getDefault() is broken)
libjava/
	PR libgcj/17002
	PR classpath/28550
	* java/util/VMTimeZone.java (getDefaultTimeZoneId): To read
	/etc/localtime, use ZoneInfo.readTZFile instead of
	VMTimeZone.readtzFile.  Get better timezone name for /etc/localtime,
	either if it is a symlink or through /etc/sysconfig/clock.
	(readSysconfigClockFile): New static method.
	(readtzFile): Removed.
	* java/lang/System.java: Add gnu.java.util.zoneinfo.dir to comments.
	* posix.cc (_Jv_platform_initProperties): Set
	gnu.java.util.zoneinfo.dir.
	* sources.am (gnu_java_util_source_files): Add
	classpath/gnu/java/util/ZoneInfo.java.
	* Makefile.in: Regenerated.
	* java/util/VMTimeZone.h: Regenerated.
	* java/util/TimeZone.h: Regenerated.
	* gnu/java/util/ZoneInfo.h: Generated.
libjava/classpath/
	* java/util/Date.java (parse): Properly parse 09:01:02 as
	hours/minutes/seconds, not as hours/minutes/year.
	* java/util/SimpleTimeZone.java (SimpleTimeZone): Simplify
	{start,end}TimeMode constructor by calling shorter constructor,
	set {start,end}TimeMode fields after it returns.
	(setStartRule): Don't adjust startTime into WALL_TIME.  Set
	startTimeMode to WALL_TIME.
	(endStartRule): Similarly.
	(getOffset): Handle properly millis + dstOffset overflowing into the
	next day.  Adjust startTime resp. endTime based on startTimeMode
	resp. endTimeMode.
	* java/util/TimeZone.java (zoneinfo_dir, availableIDs, aliases0): New
	static fields.
	(timezones): Remove synchronized keyword.  Set zoneinfo_dir.
	If non-null, set up aliases0 and don't put anything into
	timezones0.
	(defaultZone): Call getTimeZone instead of timezones().get.
	(getDefaultTimeZone): Fix parsing of EST5 or EST5EDT6.  Use
	getTimeZoneInternal instead of timezones().get.
	(parseTime): Parse correctly hour:minute.
	(getTimeZoneInternal): New private method.
	(getTimeZone): Do the custom ID checking first, canonicalize
	ID for custom IDs as required by documentation.  Call
	getTimeZoneInternal to handle the rest.
	(getAvailableIDs(int)): Add locking.  Handle zoneinfo_dir != null.
	(getAvailableIDs(File,String,ArrayList)): New private method.
	(getAvailableIDs()): Add locking.  Handle zoneinfo_dir != null.
	* gnu/java/util/ZoneInfo.java: New file.

From-SVN: r122229
2007-02-22 17:04:55 +01:00
..
annotation Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
instrument Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
management [multiple changes] 2007-02-16 13:51:04 +00:00
ref Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
reflect LogManager.java (loggers): Genericized. 2007-02-01 21:36:01 +00:00
AbstractMethodError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Appendable.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ArithmeticException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ArrayIndexOutOfBoundsException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ArrayStoreException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
AssertionError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Boolean.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Byte.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
CharSequence.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Character$Subset.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Character$UnicodeBlock.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Character.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Character.java unicode-muncher.pl: Removed this file. 2006-03-28 16:12:52 +00:00
Class.h Class.h (_Jv_GetClassStatus): Declare. 2007-01-23 01:06:10 +00:00
Class.java Calendar.java: Implement Comparable<Calendar>. 2007-02-01 20:34:08 +00:00
ClassCastException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ClassCircularityError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ClassFormatError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ClassLoader$AnnotationsKey.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ClassLoader.h Checking in header files missed by earlier commit 2007-02-06 23:59:34 +00:00
ClassLoader.java * java/lang/ClassLoader.java (getResources): No longer final. 2007-02-01 23:00:01 +00:00
ClassNotFoundException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
CloneNotSupportedException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Cloneable.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Comparable.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Compiler.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Deprecated.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Double.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
EcosProcess.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
EcosProcess.java Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Enum.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
EnumConstantNotPresentException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Error.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Exception.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ExceptionInInitializerError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Float.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
IllegalAccessError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
IllegalAccessException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
IllegalArgumentException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
IllegalMonitorStateException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
IllegalStateException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
IllegalThreadStateException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
IncompatibleClassChangeError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
IndexOutOfBoundsException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
InheritableThreadLocal.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
InstantiationError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
InstantiationException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Integer.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
InternalError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
InterruptedException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Iterable.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
LinkageError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Long.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Math.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Math.java re PR libgcj/27731 (Math cbrt(), cosh(), expm1(), hypot(), log1p(), sinh() and tanh() not implemented) 2006-05-24 17:14:45 +00:00
NegativeArraySizeException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
NoClassDefFoundError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
NoSuchFieldError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
NoSuchFieldException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
NoSuchMethodError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
NoSuchMethodException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
NullPointerException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Number.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
NumberFormatException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Object.h Object.h (throwNoSuchMethodError): New method. 2005-12-08 14:19:13 +00:00
Object.java LogManager.java (loggers): Genericized. 2007-02-01 21:36:01 +00:00
OutOfMemoryError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Override.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Package.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
PosixProcess$EOFInputStream.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
PosixProcess$ProcessManager.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
PosixProcess.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
PosixProcess.java Thread.java (Thread(ThreadGroup, Runnable, String)): Pass new parameter constructor. 2007-02-16 21:23:10 +00:00
Process.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ProcessBuilder.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ProcessBuilder.java Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Readable.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Runnable.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Runtime.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Runtime.java re PR classpath/26990 (SecurityManager.checkExit() problem) 2006-04-04 23:25:09 +00:00
RuntimeException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
RuntimePermission.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
SecurityContext.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
SecurityException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
SecurityManager$1.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
SecurityManager.h XEventLoop.h: Regenerated. 2007-02-20 13:06:37 +00:00
Short.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
StackOverflowError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
StackTraceElement.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
StrictMath.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
String$CaseInsensitiveComparator.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
String.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
String.java String.java, [...]: Merge from GNU Classpath HEAD. 2006-06-09 16:07:07 +00:00
StringBuffer.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
StringBuffer.java StringBuilder.java (appendCodePoint): New method. 2006-01-09 06:42:19 +00:00
StringBuilder.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
StringBuilder.java Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
StringIndexOutOfBoundsException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
SuppressWarnings.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
System$EnvironmentCollection.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
System$EnvironmentMap.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
System$EnvironmentSet.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
System.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
System.java re PR libgcj/17002 (java.util.TimeZone.getDefault() is broken) 2007-02-22 17:04:55 +01:00
Thread$State.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Thread$UncaughtExceptionHandler.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Thread.h XEventLoop.h: Regenerated. 2007-02-20 13:06:37 +00:00
Thread.java Thread.java (Thread(ThreadGroup, Runnable, String)): Pass new parameter constructor. 2007-02-16 21:23:10 +00:00
ThreadDeath.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ThreadGroup.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ThreadLocal.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ThreadLocal.java Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Throwable$StaticData.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Throwable.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
TypeNotPresentException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
UnknownError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
UnsatisfiedLinkError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
UnsupportedClassVersionError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
UnsupportedOperationException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
VMClassLoader.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
VMClassLoader.java VMClassLoader.java (initialize): Set default library control to LIB_NEVER. 2006-05-31 17:47:44 +00:00
VMCompiler.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
VMCompiler.java Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
VMDouble.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
VMDouble.java re PR java/22578 (should inline floatToIntBits et al) 2006-02-08 18:06:11 +00:00
VMFloat.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
VMFloat.java re PR java/22578 (should inline floatToIntBits et al) 2006-02-08 18:06:11 +00:00
VMThrowable.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
VMThrowable.java prims.cc (_Jv_CreateJavaVM): Move setting runtimeInitialized from the start to the end of the function. 2006-07-28 07:40:17 +00:00
VerifyError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
VirtualMachineError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Void.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Win32Process.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Win32Process.java Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
natCharacter.cc unicode-muncher.pl: Removed this file. 2006-03-28 16:12:52 +00:00
natClass.cc natClass.cc (initializeClass): Re-throw SecurityExceptions. 2007-01-29 13:14:38 +00:00
natClassLoader.cc prims.cc (_Jv_Abort): fflush (stderr). 2007-01-31 19:04:35 +00:00
natEcosProcess.cc Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
natMath.cc re PR libgcj/27731 (Math cbrt(), cosh(), expm1(), hypot(), log1p(), sinh() and tanh() not implemented) 2006-05-24 17:14:45 +00:00
natObject.cc re PR libgcj/23353 (clone() copies internal lock data with hash synchronization off) 2005-08-12 16:40:32 +00:00
natPosixProcess.cc Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
natRuntime.cc re PR java/29812 (env->klass value is not updated during the native calls) 2007-01-22 23:04:16 +00:00
natString.cc OutputStreamWriter.java (writeChars): Use a 'do' loop. 2006-06-27 20:38:10 +00:00
natStringBuffer.cc natStringBuffer.cc (regionMatches): New function. 2003-03-24 00:50:18 +00:00
natStringBuilder.cc javaprims.h: Updated. 2005-05-10 18:28:31 +00:00
natSystem.cc win32.cc (_Jv_platform_nanotime): New function. 2006-03-09 18:47:54 +00:00
natThread.cc Thread.java (Thread(ThreadGroup, Runnable, String)): Pass new parameter constructor. 2007-02-16 21:23:10 +00:00
natThreadLocal.cc Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
natVMClassLoader.cc natClass.cc (initializeClass): Re-throw SecurityExceptions. 2007-01-29 13:14:38 +00:00
natVMDouble.cc natVMPipeEcos.cc: Renamed from gnu/java/nio/natPipeImplEcos.cc. 2007-01-18 11:32:40 +00:00
natVMFloat.cc natVMPipeEcos.cc: Renamed from gnu/java/nio/natPipeImplEcos.cc. 2007-01-18 11:32:40 +00:00
natVMThrowable.cc prims.cc (_Jv_CreateJavaVM): Move setting runtimeInitialized from the start to the end of the function. 2006-07-28 07:40:17 +00:00
natWin32Process.cc Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00