1. 25 Apr, 2001 1 commit
  2. 20 Apr, 2001 1 commit
    • warrenl's avatar
      * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST. · adaf0362
      warrenl authored
      	* java/text/SimpleDateFormat.java
      	(indexInArray): Removed private method.
      	(processYear): Removed private method.
      	(parseLenient): Removed private method.
      	(parseLeadingZeros): Removed private method.
      	(parseStrict): Removed private method.
      	(expect): Added new private method.
      	(parse): Reverted to pre-Classpath merge version with minor fixes.
      	* java/util/natGregorianCalendar.cc (computeTime): Handle strict
      	calendars.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41456 138bc75d-0d04-0410-961f-82ee72b054a4
      adaf0362
  3. 01 Apr, 2001 1 commit
    • bothner's avatar
      · 1e3cd04b
      bothner authored
      	* DeflaterOutputStream.java (deflate):  Loop while def.needsInput.
      	(finish):  def.deflate needs to be called in a loop.
      	(inbuf, inbufLength):  New private fields.
      	(write(int)): Use inbuf.
      	(write(byte[],int,int):  Check if pending output in inbuf.
      	* ZipOutputStream.java:  Don't use Deflater if stored.
      	Use a Checksum object directly, not via a CheckedOutputStream.
      	(uncompressed_size):  New field,
      	(closeEntry):  Only write data_directory if needed.
      	(write):  If STORED, write directly.
      	Always update crc, and uncompressed_size.
      	(write_entry):  Fix lots of protocol erors.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40988 138bc75d-0d04-0410-961f-82ee72b054a4
      1e3cd04b
  4. 26 Mar, 2001 1 commit
    • rth's avatar
      * exception.cc (java_eh_info): Make value type jthrowable. · 3139614a
      rth authored
      	(_Jv_type_matcher): Remove now unneeded cast.
      	(_Jv_Throw): Make argument type jthrowable.  Munge name
      	for SJLJ_EXCEPTIONS here ...
      	* gcj/cni.h: ... not here.
      	(JvThrow): Remove.
      	* gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
      
      	* defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
      	prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
      	gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
      	gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
      	gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
      	java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
      	java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
      	java/lang/natClass.cc, java/lang/natClassLoader.cc,
      	java/lang/natDouble.cc, java/lang/natObject.cc,
      	java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
      	java/lang/natString.cc, java/lang/natSystem.cc,
      	java/lang/natThread.cc, java/lang/reflect/natArray.cc,
      	java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
      	java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
      	java/util/zip/natInflater.cc:
      	Use throw, not JvThrow or _Jv_Throw.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40838 138bc75d-0d04-0410-961f-82ee72b054a4
      3139614a
  5. 24 Mar, 2001 1 commit
  6. 20 Mar, 2001 1 commit
  7. 19 Mar, 2001 1 commit
    • mark's avatar
      * java/util/ArrayList.java: Remove RCS keywords from comments · 9de582ee
      mark authored
          * java/util/BasicMapEntry.java: idem
          * java/util/Dictionary.java: idem
          * java/util/HashSet.java: idem
      
          * java/util/EventObject.java: reindent
          * java/util/Properties.java: idem
          * java/util/SortedMap.java: idem
      
          * java/util/Enumeration.java: Merge with Classpath
          * java/util/EventListener.java: idem
          * java/util/Observable.java: idem
          * java/util/Observer.java: idem
          * java/util/Stack.java: idem
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40639 138bc75d-0d04-0410-961f-82ee72b054a4
      9de582ee
  8. 06 Mar, 2001 1 commit
    • bryce's avatar
      2001-03-06 Bryce McKinlay <bryce@albatross.co.nz> · d00f9a47
      bryce authored
      	* java/util/TreeSet.java (writeObject): Use a for-loop instead of
      	Iterator.hasNext().
      
      2001-03-05  Jochen Hoenicke  <jochen@gnu.org>
      
      	* java/util/TreeMap.java (writeObject): Use defaultWriteObject()
      	instead of the new JDK1.2 API.  This is simpler and makes
      	back-porting the classes to JDK1.1 trivial.
      	(readObject): likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40252 138bc75d-0d04-0410-961f-82ee72b054a4
      d00f9a47
  9. 22 Feb, 2001 1 commit
  10. 17 Feb, 2001 1 commit
  11. 16 Feb, 2001 3 commits
  12. 15 Feb, 2001 3 commits
  13. 14 Feb, 2001 2 commits
    • bryce's avatar
      * java/lang/natClass.cc (getSignature): Don't try to dereference · f78457c1
      bryce authored
      	param_types if it is null. Instead, take this to mean "no parameters".
      	* java/lang/TreeMap.java (TreeIterator.next): Throw
      	NoSuchElementException in preference to
      	ConcurrentModificationException.
      	(TreeIterator.remove): Throw IllegalStateException in preference to
      	ConcurrentModificationException.
      	(SubMap.firstKey): Do a better check for empty SubMap, and if it is,
      	throw a NoSuchElementException.
      	(SubMap.lastKey): Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39658 138bc75d-0d04-0410-961f-82ee72b054a4
      f78457c1
    • bryce's avatar
      * java/util/TreeMap.java: New file. · cfd386ad
      bryce authored
              * java/util/TreeSet.java: New file.
              * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
              * Makefile.in: Rebuilt.
              * java/util/HashSet.java (clone): Use constructor instead of calling
              clone on itself.
              * java/util/SortedSet.java: Sync with classpath.
              * java/util/HashMap.java (hash): Use if statement instead of ternary,
              for clarity.
      	Resolves PR libgcj/1758.
      	Resolves PR java/1684.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39657 138bc75d-0d04-0410-961f-82ee72b054a4
      cfd386ad
  14. 09 Feb, 2001 1 commit
  15. 07 Feb, 2001 1 commit
  16. 09 Jan, 2001 1 commit
    • warrenl's avatar
      Fix for PR libgcj/1411: · e6d0fc23
      warrenl authored
      	* Makefile.am: Removed java/util/natTimeZone.cc.
      	* Makefile.in: Rebuilt.
      	* gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
      	missing localized timezone names.
      	* java/lang/System.java (getDefaultTimeZoneId): New private method.
      	* java/lang/natSystem.cc (getSystemTimeZone): New private method.
      	(init_properties): Set user.timezone property.
      	* java/text/DateFormatSymbols.java (zoneStringsDefault): Added
      	default timezone names; removed non-standard ones.  Use standard
      	ID names per JCL.
      	* java/util/Date.java (toGMTString): Removed zoneGMT variable.
      	(UTC): Ditto.
      	* java/util/TimeZone.java: Add standard ID names per JCL; removed
      	non-standard ones.
      	(getDefaultTimeZoneId): Removed.
      	(zoneGMT): Removed.
      	(getDefaultTimeZoneId): Removed.
      	* java/util/natTimeZone.cc: Removed.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38816 138bc75d-0d04-0410-961f-82ee72b054a4
      e6d0fc23
  17. 28 Dec, 2000 1 commit
    • warrenl's avatar
      Fix for PR libgcj/1358: · e959c67a
      warrenl authored
      	* java/lang/System.java: Update Copyright date properly.
      	* java/util/Calendar.java: Fix typo in comment.
      	(set): Set 24-hour clock hour instead of 12-hour clock hour.
      	* java/util/GregorianCalendar.java (GregorianCalendar): Properly
      	initialize times.  Spec says to set H:M:S values to zero only if
      	a date is given.
      	* java/util/TimeZone.java (getDefaultDisplayName): Casts to char
      	needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
      	* java/util/natGregorianCalendar.cc (computeTime): Properly handle
      	timezones and GMT offsets, being careful to account for units of
      	milliseconds vs. seconds.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38508 138bc75d-0d04-0410-961f-82ee72b054a4
      e959c67a
  18. 21 Dec, 2000 2 commits
  19. 19 Dec, 2000 1 commit
  20. 18 Dec, 2000 1 commit
  21. 17 Dec, 2000 2 commits
  22. 15 Dec, 2000 2 commits
  23. 11 Dec, 2000 2 commits
    • bryce's avatar
      * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'. · 47230e8a
      bryce authored
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38185 138bc75d-0d04-0410-961f-82ee72b054a4
      47230e8a
    • bryce's avatar
      * Makefile.am: Add HashSet.java and java/lang/ref classes. · 6ba7ed48
      bryce authored
      	Remove BasicMapEntry.java and Bucket.java.
      	* Makefile.in: Rebuilt.
      	* java/util/HashMap.java: Rewritten.
      	* java/util/HashSet.java: Imported from classpath.
      	* java/util/WeakHashMap.java: Imported from classpath.
      	* java/util/Hashtable.java: Rewritten based on new HashMap code.
      	* java/util/Bucket.java: Deleted.
      	* java/util/BasicMapEntry.java: Deleted.
      	* java/util/Collections.java (search): Use a for-loop, not iterator
      	hasNext().
      	(copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
      	of elements in source.
      	(max): Use a for-loop.
      	(min): Ditto.
      	(reverse): Keep track of positions instead of using Iterator's
      	nextIndex() and previousIndex().
      	(shuffle(List)): Initialize defaultRandom if required using
      	double-check thread safety idiom. Call two-argument shuffle method
      	using defaultRandom.
      	(defaultRandom): New field.
      	(shuffle(List, Random)): Use a for-loop. Keep track of pos instead
      	of using previousIndex() and nextIndex().
      	(singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
      	* java/util/AbstractCollection.java (toString): Use a StringBuffer.
      	* java/util/AbstractMap.java (toString): Use StringBuffer.
      	* java/lang/ref/PhantomReference.java: Imported from classpath.
      	* java/lang/ref/SoftReference.java: Ditto.
      	* java/lang/ref/Reference.java: Ditto.
      	* java/lang/ref/WeakReference.java: Ditto.
      	* java/lang/ref/ReferenceQueue.java: Ditto.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38183 138bc75d-0d04-0410-961f-82ee72b054a4
      6ba7ed48
  24. 06 Dec, 2000 2 commits
  25. 04 Dec, 2000 2 commits
  26. 02 Dec, 2000 2 commits
  27. 29 Nov, 2000 2 commits