aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/util
AgeCommit message (Collapse)AuthorFilesLines
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
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