Commit Graph

262 Commits

Author SHA1 Message Date
Michael Koch 030c1e2392 InflaterInputStream.java: Merged class documentation with classpath.
2004-01-24  Michael Koch  <konqueror@gmx.de>

	* java/util/zip/InflaterInputStream.java: Merged class documentation
	with classpath.

From-SVN: r76519
2004-01-24 20:32:57 +00:00
Michael Koch bbe4ef8921 2004-01-09 Michael Koch <konqueror@gmx.de>
* java/awt/geom/PathIterator.java
	(WIND_EVEN_ODD): Removed redundant modifiers.
	(WIND_NON_ZERO): Likewise.
	(SEG_MOVETO): Likewise.
	(SEG_LINETO): Likewise.
	(SEG_QUADTO): Likewise.
	(SEG_CUBICTO): Likewise.
	(SEG_CLOSE): Likewise.
	* java/awt/image/SinglePixelPackedSampleModel.java:
	Removed redundant semicolon.
	* java/io/ObjectInputStream.java
	(inputGetObjectStreamClasses): Removed unused variable "ret_val".
	* java/util/logging/Filter.java
	(isLoggable): Removed redundant modifier.
	* java/util/logging/LogManager.java:
	Removed redundant semicolon.
	* java/util/logging/XMLFormatter.java
	(format): Removed unused variable "key".

From-SVN: r75570
2004-01-09 08:58:59 +00:00
Per Bothner 5814ecc2da Date.java (parse): Fix a number of problems.
* java/util/Date.java (parse):  Fix a number of problems.
	(skipParens):  Remove no-longer-needed method.

From-SVN: r75381
2004-01-03 16:32:50 -08:00
Michael Koch cca9b4b54d [multiple changes]
2003-12-30 Guilhem Lavaux <guilhem@kaffe.org>

	* java/util/GregorianCalendar.java
	(computeFields): Reported by Ito Kazumitsu <kaz@maczuka.gcd.org>.
	Fixed the computation of DAY_OF_WEEK_IN_MONTH.
	(computeTime): 12:00 midnight is AM and 12:00 noon is PM.

2003-12-30  Michael Koch  <konqueror@gmx.de>

	* testsuite/libjava.mauve/xfails: Removed the following testcase
	because it passes now:
	FAIL: gnu.testlet.java.text.SimpleDateFormat.Test: parse() strict
	(number 1)

From-SVN: r75244
2003-12-30 19:56:49 +00:00
Michael Koch c05fc0c2e1 2003-12-19 Michael Koch <konqueror@gmx.de>
* java/util/SimpleTimeZone.java
	(setStartRule): Reformated documentation.
	(setEndRule): Reworked documentation.
	(getDSTSavings): Fixed @since tag.
	(setDSTSavings): New method.

From-SVN: r74831
2003-12-19 11:01:05 +00:00
Michael Koch a7296ae157 2003-12-18 Michael Koch <konqueror@gmx.de>
* java/util/prefs/AbstractPreferences.java
	(cachedChildren): New method.

From-SVN: r74785
2003-12-18 16:48:33 +00:00
Michael Koch e969bcdbbc TimeZone.java (getOffset): New method.
2003-12-18  Michael Koch  <konqueror@gmx.de>

	* java/util/TimeZone.java (getOffset): New method.

From-SVN: r74784
2003-12-18 16:43:02 +00:00
Michael Koch 3a7ab7e8b7 Calendar.java, [...]: Import used classes explicitely.
2003-12-09  Michael Koch  <konqueror@gmx.de>

	* java/util/Calendar.java,
	java/util/IdentityHashMap.java,
	java/util/prefs/Preferences.java:
	Import used classes explicitely.

From-SVN: r74471
2003-12-09 16:17:01 +00:00
Bryce McKinlay 0f46e42809 Hashtable.java (Hashtable(Map)): Use putAll, not putAllInternal.
* java/util/Hashtable.java (Hashtable(Map)): Use putAll, not
	putAllInternal.
	(putAllInternal): Correct comment.
	* java/util/HashMap.java (HashMap(Map)): As above.
	(putAllInternal): As above.

From-SVN: r74400
2003-12-07 23:00:49 +00:00
Bryce McKinlay eb1e64ef80 Hashtable.java (internalContainsValue): Removed.
* java/util/Hashtable.java (internalContainsValue): Removed.
	(containsValue): Don't delegate to internalContainsValue.

From-SVN: r74399
2003-12-07 21:03:49 +00:00
Dalibor Topic 23757fa5ca Reported by: Jim Pick <jim@kaffe.org>
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-12-02 17:05:40 +00:00
Ito Kazumitsu 33ebe68e64 GregorianCalendar.java (getLinearTime): Avoid counting the leap day of the 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-27 09:16:13 +00:00
David Belanger 03e5242015 ZipFile (Zipfile(File)): Set file path as name.
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-26 21:55:27 +00:00
Stuart Ballard 32ffbe9280 HashMap.java (putAll): Use Iterator hasNext() method.
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-26 21:45:55 +00:00
Tom Tromey 2758ce13c1 Makefile.in: Rebuilt.
* 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-11-25 01:57:29 +00:00
Michael Koch 8b941eec31 [multiple changes]
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-29 16:07:59 +00:00
Mark Wielaard 57b4edef7d Reported by Helmer Kraemer <hkraemer@freenet.de>
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-27 11:02:44 +00:00
Bryce McKinlay 12afcb31e5 * java/util/TreeMap.java: Doc fixes. HashMap -> TreeMap.
From-SVN: r72944
2003-10-26 02:48:31 +00:00
Sascha Brawer 75a5a481c2 Fix for bug #2944, reported by David Holmes <dholmes@dltech.com.au>
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-21 13:25:46 +00:00
Michael Koch 6c73e9f7f9 2003-10-15 Michael Koch <konqueror@gmx.de>
* 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-15 14:02:37 +00:00
Michael Koch 9440ae0c09 Map.java, [...]: Removed redundant modifiers.
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-11 18:52:31 +00:00
Michael Koch 51a398a00e LinkedList.java: Removed whitespace to match classpath's version again.
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-08 15:30:44 +00:00
Michael Koch f475867806 2003-10-08 Michael Koch <konqueror@gmx.de>
* 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-08 15:30:21 +00:00
Andrew Haley 9dfc2ec225 jcf-parse.c (java_parse_file): Write otable and atable.
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-10-01 16:22:13 +00:00
Michael Koch f27fd64eb9 Timer.java (finalize): Added "throws Throwable".
2003-09-18  Michael Koch  <konqueror@gmx.de>

	* java/util/Timer.java (finalize): Added "throws Throwable".

From-SVN: r71519
2003-09-18 13:09:53 +00:00
Ingo Proetel 1ea8e73b80 TimeZone.java: Initialize lazily.
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-18 06:34:00 +00:00
David Daney 9c9d2cced9 Arrays.java (equals(all variants)): Quit using NullPointerException catching 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-09-10 18:11:05 +00:00
Ingo Proetel d9e27aedb6 Logger.java: provide class and method information
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-31 16:52:16 +00:00
Mark Wielaard a85993787b Acl.java: Fix broken p tag.
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-26 22:42:37 +00:00
Tom Tromey a04045d0a2 re PR libgcj/11241 (WeakHashMap throws a "/ zero" ArithmeticException when 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-01 21:30:14 +00:00
Stepan Koltsov e14c33e5af re PR libgcj/11728 (HashMap serialization does not work)
2003-07-31  Stepan Koltsov  <yozh@mx1.ru>

	Fix for PR libgcj/11728:

From-SVN: r70037
2003-08-01 03:32:42 +00:00
Mark Wielaard c26052b06b Handler.java (isLoggable): Check record level smaller or equal.
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-18 16:08:38 +00:00
Michael Koch 6a71677713 MemoryImageSource.java, [...]: New versions from classpath.
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-07-14 05:33:30 +00:00
Michael Koch 6f705fc773 SimpleTimeZone.java: Removed unneeded import, reformatting.
2003-06-21  Michael Koch  <konqueror@gmx.de>

	* java/util/SimpleTimeZone.java:
	Removed unneeded import, reformatting.

From-SVN: r68301
2003-06-21 12:49:39 +00:00
Michael Koch 73c7dd50e8 DateFormat.java, [...]: New versions from classpath.
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-21 12:42:26 +00:00
Michael Koch 2d0c9050c3 LogRecord.java, [...]: New files from classpath.
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-21 10:31:55 +00:00
Michael Koch 3580a7d585 2003-06-19 Michael Koch <konqueror@gmx.de>
* java/util/zip/InflaterInputStream.java
	(InflaterInputStream): Throw NullPointerException if in is null (as
	JDK does).

From-SVN: r68197
2003-06-19 14:46:21 +00:00
Michael Koch 20d513ff66 2003-06-18 Michael Koch <konqueror@gmx.de>
* java/util/Locale.java
	(equals): Merged from classpath.

From-SVN: r68144
2003-06-18 08:15:42 +00:00
Michael Koch b98cf05972 2003-06-17 Michael Koch <konqueror@gmx.de>
* java/util/Locale.java
	(getDisplayLanguage): Made it final.
	(getDisplayCountry): Likewise.
	(getDisplayVariant): Likewise.
	(getDisplayName): Likewise.

From-SVN: r68086
2003-06-17 14:16:22 +00:00
Michael Koch 99657762e9 PropertyResourceBundle.java: Removed unneeded import.
2003-06-17  Michael Koch  <konqueror@gmx.de>

	* java/util/PropertyResourceBundle.java:
	Removed unneeded import.

From-SVN: r68084
2003-06-17 14:05:17 +00:00
Michael Koch 2a352ff13d AbstractPreferences.java, [...]: Reworked imports, removed unused imports.
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-17 13:01:21 +00:00
Michael Koch efc5eec6f3 ZipEntry.java, [...]: Reworked imports, only import used classes.
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-06-17 12:07:56 +00:00
Michael Koch 98ad580793 2003-05-27 Michael Koch <konqueror@gmx.de>
* 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-27 06:34:29 +00:00
Michael Koch 336931c175 2003-05-19 Michael Koch <konqueror@gmx.de>
* java/util/Calendar.java
	(get): Not final anymore since JDK 1.4
	(set): Likewise.

From-SVN: r66956
2003-05-19 09:14:57 +00:00
Michael Koch ad03daf005 2003-04-30 Michael Koch <konqueror@gmx.de>
* 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-30 08:57:04 +00:00
Michael Koch fbba7d6850 PropertyPermission.java: New version from classpath
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-29 11:36:34 +00:00
Michael Koch 8efaad2140 Deflater.java, [...]: Partly merged with classpath.
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-04-29 07:37:14 +00:00
Michael Koch 1ab1cf4ecc Date.java: Fixed documentation starting tag to make javadoc happy.
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-24 13:56:57 +00:00
Mark Wielaard bd3f5371a4 Properties.java (load): Only skip line if the first character is a comment, 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-03-02 22:36:20 +00:00
Tom Tromey 2afced1191 AbstractPreferences.java (isUserNode): Implemented.
* java/util/prefs/AbstractPreferences.java (isUserNode):
	Implemented.

From-SVN: r63382
2003-02-24 21:20:19 +00:00