aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/util
AgeCommit message (Collapse)AuthorFilesLines
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
2003-01-21natResourceBundle.cc (getCallingClassLoader): Start search at 2, not 3.Tom Tromey1-2/+5
* java/util/natResourceBundle.cc (getCallingClassLoader): Start search at 2, not 3. From-SVN: r61574
2003-01-03TreeMap.java (fabricateTree): Fix off-by-one error.Eric Blake1-3/+3
2003-01-03 Eric Blake <ebb9@email.byu.edu> * java/util/TreeMap.java (fabricateTree): Fix off-by-one error. (TreeIterator.remove): Prefer IllegalStateException over ConcurrentModificationException, to match Sun. From-SVN: r60837
2003-01-02ZipFile.java (entries): Now HashMap.Artur Biesiadowski1-64/+113
* java/util/zip/ZipFile.java (entries): Now HashMap. (readLeShort(DataInput, byte[])): Read from given byte array. (readLeInt(DataInput, byte[]): Likewise. (readLeShort(byte[] b, int off)): New method. (readLeInt(byte[] b, int off)): Likewise. (readEntries): Use byte arrays to read info in bigger chunks. (getEntries): Return HashMap. (getEntry): Use HashMap. (locBuf): New private field. (checkLocalHeader): Use locBuf to read info in one chunk. (getInputStream): Use entries HashMap, wrap PartialInputStream in BufferedInputStream. (ZipEntryEnumeration): Use HashMap and Interator. Co-Authored-By: Mark Wielaard <mark@klomp.org> From-SVN: r60803
2002-12-30Properties (formatForOutput): Don't fall through to default case after ↵Mark Wielaard1-0/+1
escaping character. * java/util/Properties (formatForOutput): Don't fall through to default case after escaping character. From-SVN: r60618
2002-12-20natResourceBundle.cc: Include ArrayIndexOutOfBoundsException.h.Andrew Haley1-4/+11
2002-12-19 Andrew Haley <aph@redhat.com> * java/util/natResourceBundle.cc: Include ArrayIndexOutOfBoundsException.h. (getCallingClassLoader): Don't put upper bound on stack search. Catch ArrayIndexOutOfBoundsException. From-SVN: r60348
2002-12-10natResourceBundle.cc (getCallingClassLoader): Assume `t' won't be null.Tom Tromey1-2/+0
* java/util/natResourceBundle.cc (getCallingClassLoader): Assume `t' won't be null. From-SVN: r59975
2002-12-08ResourceBundle.java (resourceBundleCache): Not final.Mark Wielaard1-3/+15
* java/util/ResourceBundle.java (resourceBundleCache): Not final. (lastDefaultLocale): New field. (getBundle): When Locale.getDefault != lastDefaultLocale reset resourceBundleCache. From-SVN: r59948
2002-12-05Makefile.in: Rebuilt.Tom Tromey2-42/+37
* Makefile.in: Rebuilt. * Makefile.am (nat_source_files): Added natVMSecurityManager, natResourceBundle. * java/util/ResourceBundle.java (Security): Removed. (getCallingClassLoader): Now native. * java/util/natResourceBundle.cc: New file. * java/lang/natVMSecurityManager.cc: New file. * java/lang/VMSecurityManager.java (getClassContext): Now native. From-SVN: r59840
2002-12-03JarFile.java (manifest): Not final.Mark Wielaard4-128/+180
* java/util/jar/JarFile.java (manifest): Not final. (manifestRead): New field. (JarFile): Don't read Manifest in constructor. (getManifest): New method. (JarEnumeration.nextElement): Use new method. (getEntry): Likewise. * java/util/zip/ZipFile.java (name): Final. (raf): Likewsie. (entries): Change type to Hashtable. (closed): New field. (ZipFile): Don't read enties in constructor. (readEntries): Use Hashtable. (close): Set new close flag and set entries to null inside synchronized block. (entries): Contruct enumeration using new getEntries() method and entries Hashtable. (getEntryIndex): Removed. (getEntries): New method. (getEntry): Use new getEntries() method and entries Hastable. (getInputStream): Likewise. (size): Return getEntries().size(). (ZipEntryEnumeration): Wrap entries Hashtable elements. * java/util/zip/ZipEntry.java (cal): Don't initialize. (time): Removed (dostime): New field. (zipFileIndex): Removed. (ZipEntry(ZipEntry)): Copy dostime. (setDOSTime): Now final and doesn't convert dos time. (getDOSTime): Likewise. (setTime): Convert dos time. (getTime): Likewise. (getCalendar): New method. (setExtra): Use setTime(). * java/util/zip/ZipInputStream.java (getNextEntry): Format error msg. From-SVN: r59785
2002-11-27Locale.java (toString): Improve efficiency if country and variant are both ↵Julian Dolby1-0/+2
empty. 2002-11-27 Julian Dolby <dolby@us.ibm.com> * java/util/Locale.java (toString): Improve efficiency if country and variant are both empty. From-SVN: r59590
2002-11-16For PR libgcj/8593:Tom Tromey1-15/+21
* java/util/zip/GZIPInputStream.java (read): Check file size. Look in inflater for remaining input bytes. (read4): Added buf and offset arguments. From-SVN: r59145
2002-11-10Externalizable.java, [...]: New versions from Classpath.Tom Tromey3-135/+155
* java/io/Externalizable.java, java/io/FilePermission.java, java/io/ObjectStreamConstants.java, java/io/Serializable.java, java/io/SerializablePermission.java, java/text/Format.java, java/util/AbstractMap.java, java/util/HashMap.java, java/util/LinkedHashMap.java, javax/naming/BinaryRefAddr.java: New versions from Classpath. From-SVN: r58996
2002-11-10Attributes.java (Name): Fix name check.Anthony Green1-1/+2
2002-11-10 Anthony Green <green@redhat.com> * java/util/jar/Attributes.java (Name): Fix name check. From-SVN: r58992
2002-11-07re PR libgcj/8481 (java.Random.nextInt(int) may return negative)Tom Tromey1-2/+2
From svens@it.uu.se. For PR libgcj/8481. * java/util/Random.java (nextInt(int)): Only use 31 bits. From-SVN: r58876
2002-11-03GNU Classpath merge.Mark Wielaard3-11/+13
2002-10-31 Stephen Crawley <crawley@dstc.edu.au> * java/lang/Double.java (valueOf): Return new Double(parseDouble(s)). 2002-10-31 Wu Gansha <gansha.wu@intel.com>: * java/util/ArrayList.java (readObject, writeObject): Only read/write size items. 2002-10-31 Wu Gansha <gansha.wu@intel.com>: * java/io/DataInputStream.java (convertFromUTF): Give StringBuffer an initial estimated size to avoid enlarge buffer frequently. 2002-10-31 Wu Gansha <gansha.wu@intel.com>: * java/lang/reflect/Proxy.java (ProxyType): Set loader to System ClassLoader when null. (ProxyType.hashCode): Loader null check no longer needed. (ProxyType.sameTypes): New method. (ProxyType.equals): Use new method. 2002-10-31 Mark Wielaard <mark@klomp.org> * java/net/URLDecoder.java (decode): Initialize Stringbuffer size to length of String. * java/net/URLEncoder.java (encode): Likewise. 2002-10-31 Mark Wielaard <mark@klomp.org> * java/util/zip/ZipInputStream.java (getNextEntry): Throw IOException when stream is closed. (closeEntry): Likewise. (read): Likewise. * java/util/zip/ZipOutputStream.java (putNextEntry): Throw ZipException when no entry active. (closeEntry): Likewise. (write): Likewise. From-SVN: r58772
2002-10-31ZipFile.java (readLeShort): Take and use DataInput as argument.Mark Wielaard1-39/+58
* java/util/zip/ZipFile.java (readLeShort): Take and use DataInput as argument. (readLeShort): Likewise and use byte[]. (readLeInt): Likewise. (readEntries): Use new versions of methods and use byte[] for reading a complete zip entry. Add ZipFile name to exceptions. (entries): Add ZipFile name to exceptions. (getEntry): Likewise. (checkLocalHeader): Use new versions of methods and add ZipFile name to exceptions. From-SVN: r58697
2002-10-16re PR libgcj/8234 (ZipInputStream chokes when InputStream.read() returns ↵Tom Tromey2-0/+2
small chunks) Fix for PR libgcj/8234: * java/util/zip/natInflater.cc (reset): Reset avail_in. * java/util/zip/natDeflater.cc (reset): Reset avail_in. From-SVN: r58205
2002-09-25re PR libgcj/7786 (TimeZone.getDSTSavings() from JDK1.4 not implemented)Jesse Rosenstock1-0/+16
2002-09-25 Jesse Rosenstock <jmr@ugcs.caltech.edu> * java/util/TimeZone.java (getDSTSavings): New method. Fixes PR libgcj/7786. From-SVN: r57518
2002-09-25re PR libgcj/7766 (ZipInputStream.available returns 0 immediately after ↵Jesse Rosenstock1-2/+8
construction) 2002-09-25 Jesse Rosenstock <jmr@ugcs.caltech.edu> Fix for PR libgcj/7766: * java/util/zip/ZipInputStream.java (entryAtEOF): New field. (getNextEntry): Set it. (closeEntry): Likewise. (read): Likewise. (close): Likewise. (available): Use it. From-SVN: r57513
2002-09-23re PR libgcj/6576 (java.util.ResourceBundle.getResource ignores locale)Tom Tromey1-83/+125
Fix for PR libgcj/6576: * java/util/ResourceBundle.java (tryBundle): Cache `null' if we didn't find a given bundle. (getBundle): Don't require base bundle. (setParent): Removed old comment. (tryLocalBundle): Try components even if preceding components were empty. From-SVN: r57442
2002-09-18Matcher.java, [...]: Merge with classpath, new files.Michael Koch3-0/+241
2002-09-18 Michael Koch <konqueror@gmx.de> * java/util/regex/Matcher.java, java/util/regex/Pattern.java, java/util/regex/PatternSyntaxException.java: Merge with classpath, new files. * Makefile.am (core_java_source_files): Added java/util/regex/Matcher.java, java/util/regex/Pattern.java, java/util/regex/PatternSyntaxException.java * Makefile.in: Regenerated. * include/config.h.in: Added HAVE_NET_IF_H. * java/net/natNetworkInterface.cc (getRealNetworkInterfaces): Removed #if 0 ... #endif. From-SVN: r57275
2002-08-31re PR libgcj/7785 (Calendar.getTimeInMillis/setTimeInMillis should be public)Jesse Rosenstock1-3/+5
2002-08-30 Jesse Rosenstock <jmr@ugcs.caltech.edu> * java/util/Calendar.java (getTimeInMillis, getTimeInMillis): Now public, per 1.4 spec. Fixes PR libgcj/7785. From-SVN: r56696
2002-06-18javaprims.h: Updated class declaration list.Tom Tromey1-168/+0
* gcj/javaprims.h: Updated class declaration list. * Makefile.in: Rebuilt. * Makefile.am (core_java_source_files): Removed BasicMapEntry.java. * java/util/BasicMapEntry.java: Removed. From-SVN: r54753
2002-06-18javaprims.h: Updated class declaration list.Tom Tromey25-1068/+1693
* gcj/javaprims.h: Updated class declaration list. * Makefile.in: Rebuilt. * Makefile.am (core_java_source_files): Added PropertyPermissionCollection.java. * java/lang/Thread.java (group, name): Now package-private. * java/lang/ThreadGroup.java: Re-merge with Classpath. * java/util/AbstractList.java: Likewise. * java/util/AbstractMap.java: Likewise. * java/util/Calendar.java: Likewise. * java/util/Collections.java: Likewise. * java/util/HashMap.java: Likewise. * java/util/Hashtable.java: Likewise. * java/util/LinkedHashMap.java: Likewise. * java/util/LinkedList.java: Likewise. * java/util/List.java: Likewise. * java/util/ListResourceBundle.java: Likewise. * java/util/Map.java: Likewise. * java/util/Observable.java: Likewise. * java/util/Properties.java: Likewise. * java/util/PropertyPermission.java: Likewise. * java/util/PropertyPermissionCollection.java: Likewise. * java/util/PropertyResourceBundle.java: Likewise. * java/util/Random.java: Likewise. * java/util/SimpleTimeZone.java: Likewise. * java/util/StringTokenizer.java: Likewise. * java/util/TimerTask.java: Likewise. * java/util/TreeMap.java: Likewise. * java/util/WeakHashMap.java: Likewise. * java/util/jar/Attributes.java: Likewise. * java/util/jar/JarException.java: Likewise. * java/util/jar/Manifest.java: Likewise. From-SVN: r54743
2002-06-17javaprims.h: Updated class declaration list.Tom Tromey3-15/+110
* gcj/javaprims.h: Updated class declaration list. * Makefile.in: Rebuilt. * Makefile.am (core_java_source_files): Added new file. * java/util/EventListenerProxy.java: New file. * java/util/EventListener.java: Re-merge with Classpath. * java/util/EventObject.java: Re-merge with Classpath. From-SVN: r54720
2002-06-16RuntimeException.java: Re-merge with Classpath.Tom Tromey10-106/+143
* java/lang/RuntimeException.java: Re-merge with Classpath. * java/util/ArrayList.java: Likewise. * java/util/Arrays.java: Likewise. * java/util/BitSet.java: Likewise. * java/util/Dictionary.java: Likewise. * java/util/IdentityHashMap.java: Likewise. * java/util/MissingResourceException.java: Likewise. * java/util/Observer.java: Likewise. * java/util/TooManyListenersException.java: Likewise. * java/util/zip/DataFormatException.java: Likewise. * java/util/zip/ZipException.java: Likewise. From-SVN: r54680
2002-06-15InflaterInputStream.java (read): Loop if data has been read but none output ↵Tom Tromey8-787/+1332
by inflater. * java/util/zip/InflaterInputStream.java (read): Loop if data has been read but none output by inflater. * java/util/zip/natDeflater.cc (reset): Set is_finished. * java/util/zip/natInflater.cc (reset): Set dist_needed and is_finished. * java/util/zip/ZipOutputStream.java: Replaced with Classpath version. * java/util/zip/ZipFile.java: Replaced with Classpath version. * java/util/zip/ZipEntry.java: Replaced with Classpath version. * java/util/zip/ZipInputStream.java: Replaced with Classpath version. * java/util/zip/ZipConstants.java: Replaced with Classpath version. From-SVN: r54653
2002-06-04* java/util/natTimeZone.cc: Include <stdio.h>.Tom Tromey1-0/+2
From-SVN: r54258
2002-05-14natRuntime.cc: Don't include sys/time.h and time.h.Tom Tromey1-0/+15
* java/lang/natRuntime.cc: Don't include sys/time.h and time.h. * java/util/natTimeZone.cc: Include sys/time.h and time.h here. Include platform.h. From-SVN: r53443
2002-05-13re PR libgcj/6389 (System.getProperty("") should always throw an ↵Tom Tromey2-3/+174
IllegalArgumentException) Fixes PR libgcj/6389: * Makefile.in: Rebuilt. * Makefile.am (nat_source_files): Added natTimeZone.cc. * java/util/natTimeZone.cc: New file. * java/util/TimeZone.java (getDefaultTimeZoneId): New method. * java/lang/System.java: Merged with Classpath. * java/lang/Runtime.java: Merged with Classpath. * java/lang/natSystem.cc (setErr0): Renamed from setErr; don't run security check. (setIn0): Renamed from setIn; don't run security check. (setOut0): Renamed from setOut; don't run security check. (file_encoding, getpwuid_adaptor, getSystemTimeZone, init_properties): Moved to natRuntime.cc. Moved many includes to natRuntime.cc. (isWordsBigEndian): New method. * java/lang/natRuntime.cc: Include Long.h, also other includes previously in natSystem.cc. (maxMemory): New function. (exitInternal): Renamed from `_exit'. (exit): Removed. (init): Don't set finalize_on_exit. (exitInternal): Use `finalizeOnExit'. (file_encoding, getpwuid_adaptor): New functions from natSystem.cc. (insertSystemProperties): New method, renamed from System::init_properties. Don't set user.timezone. (_load): Don't call checkLink. (execInternal): New method. (availableProcessors): Likewise. (nativeGetLibname): Likewise. From-SVN: r53429
2002-05-09ResourceBundle.java: New version from Classpath.Tom Tromey2-644/+765
* java/util/ResourceBundle.java: New version from Classpath. * java/util/Locale.java: Likewise. From-SVN: r53351
2002-04-08AbstractMap.java (putAll): Use entrySet size.Mark Wielaard1-5/+5
* java/util/AbstractMap.java (putAll): Use entrySet size. (toString): Explicitly use getKey() and getValue(). From-SVN: r52008
2002-04-07Hashtable.java (contains): Remove NullPointer check.Mark Wielaard1-14/+8
* java/util/Hashtable.java (contains): Remove NullPointer check. (containsValue): Add NullPointer check. (remove): Always throw NullPointerException when key is null. From-SVN: r51994
2002-04-07ArrayList.java (addAll(int,Collection)): System.arraycopy all of the ↵Mark Wielaard2-5/+17
remaining elements. * java/util/ArrayList.java (addAll(int,Collection)): System.arraycopy all of the remaining elements. * java/util/Vector.java (addAll(int,Collection)): Likewise. (removeRange): If toIndex == fromIndex do nothing, if toIndex < fromIndex throw IndexOutIfBoundsException. (removeAll): Always throw NullPointerException when collection is null. (retrainAll): Likewise. From-SVN: r51979
2002-04-06ArrayList.jva (removeRange): If toIndex == fromIndex do nothing...Mark Wielaard1-3/+7
* java/util/ArrayList.jva (removeRange): If toIndex == fromIndex do nothing, if toIndex < fromIndex throw IndexOutIfBoundsException. From-SVN: r51947
2002-04-04Arrays.java (qsort): Fix off-by-one errors and use of incorrect "hi" value ↵Bryce McKinlay1-42/+49
when count > 40. * java/util/Arrays.java (qsort): Fix off-by-one errors and use of incorrect "hi" value when count > 40. From-SVN: r51854
2002-04-02IdentityHashMap.java (put): Set new threshold correctly when resizing table.Bryce McKinlay1-1/+1
* java/util/IdentityHashMap.java (put): Set new threshold correctly when resizing table. From-SVN: r51751