aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/util
AgeCommit message (Collapse)AuthorFilesLines
2003-12-02Reported by: Jim Pick <jim@kaffe.org>Dalibor Topic1-1/+24
2003-12-02 Dalibor Topic <robilad@kaffe.org> Reported by: Jim Pick <jim@kaffe.org> * libraries/javalib/java/util/Hashtable.java (internalcontainsValue): New method. (contains): Delegate to internalContainsValue. Reported by: Mark Wielaard <mark@klomp.org> * libraries/javalib/java/util/Hashtable.java (contains): Improved comment. Reported by: Jeroen Frijters <jeroen@frijters.net> * libraries/javalib/java/util/Hashtable.java (containsValue): Delegate to contains(Object) to make sure older code overwriting it continues to work. From-SVN: r74190
2003-11-27GregorianCalendar.java (getLinearTime): Avoid counting the leap day of the ↵Ito Kazumitsu1-4/+6
leap year twice. 2003-11-27 Ito Kazumitsu <kaz@maczuka.gcd.org> * java/util/GregorianCalendar.java (getLinearTime): Avoid counting the leap day of the leap year twice. (computeFields): First week of month is 1 not 0. From-SVN: r73984
2003-11-26ZipFile (Zipfile(File)): Set file path as name.David Belanger1-3/+3
2003-11-26 David Belanger <dbelan2@cs.mcgill.ca> * java/util/zip/ZipFile (Zipfile(File)): Set file path as name. (ZipFile(File,int)): Likewise. From-SVN: r73965
2003-11-26HashMap.java (putAll): Use Iterator hasNext() method.Stuart Ballard2-9/+8
2003-11-26 Stuart Ballard <stuart.ballard@corp.fast.net> * java/util/HashMap.java (putAll): Use Iterator hasNext() method. (putAllInternal): Likewise. * java/util/Hashtable.java (putAll): Use Iterator hasNext() method. (putAllInternal): Likewise. From-SVN: r73964
2003-11-25Makefile.in: Rebuilt.Tom Tromey1-0/+8
* Makefile.in: Rebuilt. * Makefile.am (propdir): New macro. (install-data-local): Install logging.properties. (core_java_source_files): Added java.util.logging.*. * java/util/logging/logging.properties: New file. From-SVN: r73907
2003-10-29[multiple changes]Michael Koch1-0/+189
2003-10-29 Mark Wielaard <mark@klomp.org> From Guilhem Lavaux <guilhem.lavaux@free.fr> * java/text/DateFormat.java (Field): New public static inner class. * java/text/Format.java (Field): Likewise. (formatToCharacterIterator): New method. * java/text/FormatCharacterIterator.java: New file. 2003-10-29 Mark Wielaard <mark@klomp.org> From Guilhem Lavaux <guilhem.lavaux@free.fr> * java/util/Currency.java: New file. 2003-10-29 Michael Koch <konqueror@gmx.de> * Makefile.am (ordinary_java_source_files): Added java/text/FormatCharacterIterator.java and java/util/Currency.java. * Makefile.in: Regenerated. From-SVN: r73046
2003-10-27Reported by Helmer Kraemer <hkraemer@freenet.de>Mark Wielaard2-19/+12
Reported by Helmer Kraemer <hkraemer@freenet.de> * java/util/jar/JarInputStream.java (readManifest): Don't call closeEntry(). * java/util/zip/DeflaterOutputStream.java (inbufWrite): New method. (finish): Use inbufWrite(). (write(int)): Likewise. (write(byte[],int,int)): Likewise. From-SVN: r72976
2003-10-26* java/util/TreeMap.java: Doc fixes. HashMap -> TreeMap.Bryce McKinlay1-4/+4
From-SVN: r72944
2003-10-21Fix for bug #2944, reported by David Holmes <dholmes@dltech.com.au>Sascha Brawer1-3/+18
2003-10-21 Sascha Brawer <brawer@dandelis.ch> Fix for bug #2944, reported by David Holmes <dholmes@dltech.com.au> * java/util/logging/ErrorManager.java (everUsed): Made volatile. (error): Synchronize on instance, not class. From-SVN: r72750
2003-10-152003-10-15 Michael Koch <konqueror@gmx.de>Michael Koch1-4/+10
* java/util/zip/InflaterInputStream.java (InflaterInputStream): Renamed infl to inf and bufsize to size, added description to exception, check for inf == null and size < 0. From-SVN: r72519
2003-10-11Map.java, [...]: Removed redundant modifiers.Michael Koch4-79/+79
2003-10-11 Michael Koch <konqueror@gmx.de> * java/util/Map.java, java/util/Observer.java, java/util/zip/Checksum.java, java/util/zip/ZipConstants.java: Removed redundant modifiers. From-SVN: r72358
2003-10-08LinkedList.java: Removed whitespace to match classpath's version again.Michael Koch1-1/+1
2003-10-08 Michael Koch <konqueror@gmx.de> * java/util/LinkedList.java: Removed whitespace to match classpath's version again. From-SVN: r72230
2003-10-082003-10-08 Michael Koch <konqueror@gmx.de>Michael Koch1-10/+15
* java/util/prefs/Preferences.java (defaultFactoryClass): Fixed class name. (getFactory): Create instance of class returned by Class.forName(), reformated code. From-SVN: r72229
2003-10-01jcf-parse.c (java_parse_file): Write otable and atable.Andrew Haley1-1/+1
2003-10-01 Andrew Haley <aph@redhat.com> * jcf-parse.c (java_parse_file): Write otable and atable. * java-tree.h (atable_methods): New. (atable_decl): New. (atable_syms_decl): New. (enum java_tree_index): Add JTI_ATABLE_METHODS, JTI_ATABLE_DECL, JTI_ATABLE_SYMS_DECL. Rename JTI_METHOD_SYMBOL* to JTI_SYMBOL*. (symbol_*type): Rename method_symbol* to symbol*type. (emit_offset_symbol_table): Delete. (emit_symbol_table): New. (get_symbol_table_index): New. (atable_type): New. * expr.c (build_field_ref): Handle flag_indirect_dispatch. (build_known_method_ref): Likewise. (get_symbol_table_index): Rename from get_offset_table_index. Parameterize to allow re-use by differing types of symbol table. (build_invokevirtual): Pass table to get_offset_table_index. * decl.c (java_init_decl_processing): Push types and decls for atable and atable_syyms. * class.c (build_static_field_ref): Handle flag_indirect_dispatch. (make_class_data): Add new fields atable and atable_syms. (emit_symbol_table): Rename from emit_offset_symbol_table. Parameterize to allow re-use by different types of symbol table. (build_symbol_entry): Renamed from build_method_symbols_entry. 2003-10-01 Andrew Haley <aph@redhat.com> * java/lang/natClass.cc (initializeClass): Check for otable and atable. (_Jv_LinkOffsetTable): Check for existence of atable. Rewrite loops using for(). Search superinterfaces. Check for fields as well as methods. Initialize atable as well as otable: check for static methods as well as virtual methods. * java/lang/Class.h (struct _Jv_AddressTable): New. (atable): New. (atable_syms): New. * include/jvm.h (_Jv_equalUtf8Consts): constify. * prims.cc (_Jv_equalUtf8Consts): constify. From-SVN: r71979
2003-09-18Timer.java (finalize): Added "throws Throwable".Michael Koch1-1/+1
2003-09-18 Michael Koch <konqueror@gmx.de> * java/util/Timer.java (finalize): Added "throws Throwable". From-SVN: r71519
2003-09-18TimeZone.java: Initialize lazily.Ingo Proetel4-694/+727
2003-09-18 Ingo Proetel <proetel@aicas.com> * java/util/TimeZone.java: Initialize lazily. * java/util/Locale.java (readManifest): Fix check for country. * java/util/GregorianCalendar.java: Make use of ResourceBundle better traceable * java/util/Calendar.java: Make use of ResourceBundle better traceable. From-SVN: r71509
2003-09-10Arrays.java (equals(all variants)): Quit using NullPointerException catching ↵David Daney1-128/+91
to detect null valued parameters. 2003-09-10 David Daney <ddaney@avtrex.com> * java/util/Arrays.java (equals(all variants)): Quit using NullPointerException catching to detect null valued parameters. From-SVN: r71275
2003-08-31Logger.java: provide class and method informationIngo Proetel3-11/+62
2003-08-31 Ingo Proetel <proetel@aicas.com> * java/util/logging/Logger.java: provide class and method information * java/util/logging/LogManager.java: create handlers * java/util/logging/SimpleFormatter.java: print souceClassName and sourceMethodName From-SVN: r70960
2003-08-26Acl.java: Fix broken p tag.Mark Wielaard2-3/+3
2003-08-26 Mark Wielaard <mark@klomp.org> * java/security/acl/Acl.java: Fix broken p tag. * java/text/DateFormatSymbols.java: Correctly open and close li tags. * javax/swing/border/LineBorder.java: Close img tag alt attributes. * javax/swing/plaf/TreeUI.java: Likewise. * javax/swing/plaf/basic/BasicTreeUI.java: Likewise. * java/util/Properties.java: Use the word umlaut, not &auml; in api documentation. * java/util/PropertyResourceBundle.java: Likewise and add closing code tag. From-SVN: r70825
2003-08-01re PR libgcj/11241 (WeakHashMap throws a "/ zero" ArithmeticException when ↵Tom Tromey1-1/+3
initialCapacity is explicitly zero) Fix for PR libgcj/11241: * java/util/WeakHashMap.java (WeakHashMap(int,float)): If initialCapacity is 0, set it to 1. From-SVN: r70070
2003-08-01re PR libgcj/11728 (HashMap serialization does not work)Stepan Koltsov1-1/+2
2003-07-31 Stepan Koltsov <yozh@mx1.ru> Fix for PR libgcj/11728: From-SVN: r70037
2003-07-18Handler.java (isLoggable): Check record level smaller or equal.Mark Wielaard1-1/+1
2003-07-18 Mark Wielaard <mark@klomp.org> * java/util/logging/Handler.java (isLoggable): Check record level smaller or equal. From-SVN: r69563
2003-07-14MemoryImageSource.java, [...]: New versions from classpath.Michael Koch1-1/+1
2003-07-14 Michael Koch <konqueror@gmx.de> * java/awt/image/MemoryImageSource.java, java/beans/PropertyEditorManager.java, javax/naming/CompoundName.java, javax/naming/spi/NamingManager.java, javax/swing/AbstractButton.java, javax/swing/ButtonModel.java, javax/swing/SwingUtilities.java, javax/swing/UIManager.java, javax/swing/colorchooser/DefaultColorSelectionModel.java, javax/swing/event/AncestorEvent.java, javax/swing/event/InternalFrameEvent.java, java/util/zip/ZipFile.java: New versions from classpath. From-SVN: r69321
2003-06-21SimpleTimeZone.java: Removed unneeded import, reformatting.Michael Koch1-4/+5
2003-06-21 Michael Koch <konqueror@gmx.de> * java/util/SimpleTimeZone.java: Removed unneeded import, reformatting. From-SVN: r68301
2003-06-21DateFormat.java, [...]: New versions from classpath.Michael Koch1-8/+12
2003-06-21 Michael Koch <konqueror@gmx.de> * java/text/DateFormat.java, java/text/SimpleDateFormat.java, java/util/Locale.java: New versions from classpath. From-SVN: r68300
2003-06-21LogRecord.java, [...]: New files from classpath.Michael Koch16-0/+6227
2003-06-21 Michael Koch <konqueror@gmx.de> * java/util/logging/LogRecord.java, java/util/logging/Logger.java, java/util/logging/SocketHandler.java, java/util/logging/SimpleFormatter.java, java/util/logging/Formatter.java, java/util/logging/ErrorManager.java, java/util/logging/Handler.java, java/util/logging/FileHandler.java, java/util/logging/LogManager.java, java/util/logging/Level.java, java/util/logging/ConsoleHandler.java, java/util/logging/StreamHandler.java, java/util/logging/LoggingPermission.java, java/util/logging/Filter.java, java/util/logging/MemoryHandler.java, java/util/logging/XMLFormatter.java: New files from classpath. From-SVN: r68295
2003-06-192003-06-19 Michael Koch <konqueror@gmx.de>Michael Koch1-0/+4
* java/util/zip/InflaterInputStream.java (InflaterInputStream): Throw NullPointerException if in is null (as JDK does). From-SVN: r68197
2003-06-182003-06-18 Michael Koch <konqueror@gmx.de>Michael Koch1-0/+3
* java/util/Locale.java (equals): Merged from classpath. From-SVN: r68144
2003-06-172003-06-17 Michael Koch <konqueror@gmx.de>Michael Koch1-4/+4
* java/util/Locale.java (getDisplayLanguage): Made it final. (getDisplayCountry): Likewise. (getDisplayVariant): Likewise. (getDisplayName): Likewise. From-SVN: r68086
2003-06-17PropertyResourceBundle.java: Removed unneeded import.Michael Koch1-1/+0
2003-06-17 Michael Koch <konqueror@gmx.de> * java/util/PropertyResourceBundle.java: Removed unneeded import. From-SVN: r68084
2003-06-17AbstractPreferences.java, [...]: Reworked imports, removed unused imports.Michael Koch3-11/+8
2003-06-17 Michael Koch <konqueror@gmx.de> * java/util/prefs/AbstractPreferences.java, java/util/prefs/PreferencesFactory.java: Reworked imports, removed unused imports. * java/util/prefs/Preferences.java (systemNodeForPackage): Method takes a Class not an Object. (userNodeForPackage): Likewise. (nodeForPackage): Likewise. From-SVN: r68081
2003-06-17ZipEntry.java, [...]: Reworked imports, only import used classes.Michael Koch4-7/+8
2003-06-17 Michael Koch <konqueror@gmx.de> * java/util/zip/ZipEntry.java, java/util/zip/ZipFile.java, java/util/zip/ZipInputStream.java, java/util/zip/ZipOutputStream.java: Reworked imports, only import used classes. From-SVN: r68079
2003-05-272003-05-27 Michael Koch <konqueror@gmx.de>Michael Koch3-27/+206
* java/util/zip/Deflater.java (FILTERED): Merged documentation from classpath. * java/util/zip/DeflaterOutputStream.java (DeflaterOutputStream): Merged documentation and argument validity check from classpath. (deflate): Merged documentation from classpath. (finish): Likewise. * java/util/zip/Inflater.java (Inflater): Merged class documentation from classpath. (zstream): Reordered. (is_finished): Reordered. (dict_needed): Reordered. (Inflater): Reordered, merged documentation from classpath. (end): Likewise. (finalize): Merged documentation from classpath. (finished): Likewise. (getAdler): Likewise. (getRemaining): Likewise. (getTotalIn): Likewise. (getTotalOut): Likewise. (inflate): Likewise. (needsDictionary): Likewise. (needsInput): Likewise. (reset): Likewise. (setDictionary): Likewise. (setInput): Likewise. From-SVN: r67185
2003-05-192003-05-19 Michael Koch <konqueror@gmx.de>Michael Koch1-2/+6
* java/util/Calendar.java (get): Not final anymore since JDK 1.4 (set): Likewise. From-SVN: r66956
2003-04-302003-04-30 Michael Koch <konqueror@gmx.de>Michael Koch2-13/+274
* java/util/regex/Matcher.java (pattern): New member variable. (appendReplacement): New method. (appendTail): New method. (end): New method. (find): New method. (group): New method. (replaceFirst): Added documentation. (replaceAll): Added documentation. (groupCount): New method. (lookingAt): New method. (matches): New method. (reset): New method. (start): New method. * java/util/regex/Pattern.java (serialVersionUID): New constant. (CANON_EQ): New constant. (CASE_INSENSITIVE): New constant. (COMMENTS): New constant. (DOTALL): New constant. (MULTILINE): New constant. (UNICODE_CASE): New constant. (UNIX_LINES): New constant. (regex): New member variable. (flags): New member variable. (Pattern): New method. (compile): Documentation added. (flags): New method. (matches): Documentation added. (matcher): Documentation added. (split): Documentation added. (pattern): New method. From-SVN: r66285
2003-04-29PropertyPermission.java: New version from classpathMichael Koch2-6/+31
2003-04-29 Michael Koch <konqueror@gmx.de> * java/util/PropertyPermission.java: New version from classpath * java/util/ResourceBundle.java: Partly merged from classpath (getObject): Reformated. (tryBundle): Set foundBundle = null if no bundle found. From-SVN: r66214
2003-04-29Deflater.java, [...]: Partly merged with classpath.Michael Koch2-7/+39
2003-04-29 Michael Koch <konqueror@gmx.de> * java/util/zip/Deflater.java, java/util/zip/DeflaterOutputStream.java: Partly merged with classpath. From-SVN: r66207
2003-03-24Date.java: Fixed documentation starting tag to make javadoc happy.Michael Koch3-2/+5
2003-03-24 Michael Koch <konqueror@gmx.de> * java/util/Date.java: Fixed documentation starting tag to make javadoc happy. * java/util/regex/Pattern.java (Pattern): Implements Serializable. * java/util/PatternSyntaxException.java (serialVersionUID): New member variable. From-SVN: r64799
2003-03-02Properties.java (load): Only skip line if the first character is a comment, ↵Mark Wielaard1-3/+7
whitespaces don't count. * java/util/Properties.java (load): Only skip line if the first character is a comment, whitespaces don't count. From-SVN: r63700
2003-02-24AbstractPreferences.java (isUserNode): Implemented.Tom Tromey1-4/+7
* java/util/prefs/AbstractPreferences.java (isUserNode): Implemented. From-SVN: r63382
2003-02-21ZipEntry.java (setComment): Don't check length when argument is null.Mark Wielaard1-1/+1
* java/util/zip/ZipEntry.java (setComment): Don't check length when argument is null. From-SVN: r63227
2003-02-21ZipEntry.java (ZipEntry(String)): When name is bigger then 65535 chars throw ↵Mark Wielaard1-2/+6
IllegalArgumentException. * java/util/zip/ZipEntry.java (ZipEntry(String)): When name is bigger then 65535 chars throw IllegalArgumentException. From-SVN: r63222
2003-02-21* java/util/zip/ZipFile.java (finalize): New method.Mark Wielaard1-0/+9
From-SVN: r63218
2003-02-19natStackTrace.cc: Include platform.h immediately after config.h.Rainer Orth1-3/+2
* gnu/gcj/runtime/natStackTrace.cc: Include platform.h immediately after config.h. Use <> for consistency. * java/lang/natObject.cc: Likewise. * java/lang/natRuntime.cc: Likewise. * java/lang/natSystem.cc: Likewise. * java/util/natTimeZone.cc: Likewise. * win32.cc: Likewise. * include/posix.h (fcntl, socket, connect, close, bind, accept, listen, write, read): Undef to avoid interference from OS macros. From-SVN: r63122
2003-02-17Properties.java (store): Move the code formerly in list(), into this method.Ranjit Mathew1-33/+41
2003-02-17 Ranjit Mathew <rmathew@hotmail.com> * java/util/Properties.java (store): Move the code formerly in list(), into this method. (list (PrintStream)): Just call list (PrintWriter) with a PrintWriter object constructed from the given PrintStream object. (list (PrintWriter)): Emulate the output of Properties.list() as found in JDK 1.3/1.4. From-SVN: r63006
2003-02-13InflaterInputStream.java (read): Return zero when len is zero.Mark Wielaard1-1/+3
* java/util/zip/InflaterInputStream.java (read): Return zero when len is zero. From-SVN: r62872
2003-02-13FileBasedFactory.java, [...]: New files, all merged from classpath.Michael Koch9-0/+2528
2003-02-13 Michael Koch <konqueror@gmx.de> * gnu/java/util/prefs/FileBasedFactory.java, gnu/java/util/prefs/MemmoryBasedFactory.java, gnu/java/util/prefs/MemoryBasedPreferences.java, gnu/java/util/prefs/NodeReader.java, gnu/java/util/prefs/NodeWriter.java, java/util/prefs/AbstractPreferences.java, java/util/prefs/BackingStoreException.java, java/util/prefs/InvalidPreferencesFormatException.java, java/util/prefs/NodeChangeEvent.java, java/util/prefs/NodeChangeListener.java, java/util/prefs/PreferenceChangeEvent.java, java/util/prefs/PreferenceChangeListener.java, java/util/prefs/Preferences.java, java/util/prefs/PreferencesFactory.java: New files, all merged from classpath. * Makefile.am (ordinary_java_source_files): Added the following files: gnu/java/util/prefs/FileBasedFactory.java, gnu/java/util/prefs/MemmoryBasedFactory.java, gnu/java/util/prefs/MemoryBasedPreferences.java, gnu/java/util/prefs/NodeReader.java, gnu/java/util/prefs/NodeWriter.java, (core_java_source_files): Added the following files: java/util/prefs/AbstractPreferences.java, java/util/prefs/BackingStoreException.java, java/util/prefs/InvalidPreferencesFormatException.java, java/util/prefs/NodeChangeEvent.java, java/util/prefs/NodeChangeListener.java, java/util/prefs/PreferenceChangeEvent.java, java/util/prefs/PreferenceChangeListener.java, java/util/prefs/Preferences.java, java/util/prefs/PreferencesFactory.java * Makefile.in: Regenerated. From-SVN: r62827
2003-02-12ZipInputStream.java: idemJohn Leuner1-1/+3
2003-02-11 John Leuner <jewel@debian.org> * java/util/zip/ZipInputStream.java: idem From-SVN: r62754
2003-02-07JarFile.java (JarFile(String, boolean)): Read manifest when verify is true.Mark Wielaard1-3/+21
* java/util/jar/JarFile.java (JarFile(String, boolean)): Read manifest when verify is true. (JarFile(File, boolean)): Likewise. (manifestRead): Set manifestRead field correctly. From-SVN: r62545
2003-01-31Properties.java (load): Ignore backslash before EOF.Julian Dolby1-1/+8
2003-01-31 Julian Dolby <dolby@us.ibm.com> * java/util/Properties.java (load): Ignore backslash before EOF. From-SVN: r62186