1. 10 May, 2001 1 commit
    • tromey's avatar
      2001-05-10 Tom Tromey <tromey@redhat.com> · fcd5d3ed
      tromey authored
      	* java/util/GregorianCalendar.java: Imported from Classpath.
      	* gnu/java/locale/LocaleInformation_nl.java: New file from
      	Classpath.
      	* gnu/java/locale/LocaleInformation_en.java: Likewise.
      	* gnu/java/locale/LocaleInformation_de.java: Likewise.
      	* gnu/java/locale/LocaleInformation.java: Likewise.
      	* natGregorianCalendar.cc: Removed.
      	* Makefile.in: Rebuilt.
      	* Makefile.am (nat_source_files): Removed
      	natGregorianCalendar.cc.
      
      2001-05-10  Tom Tromey  <tromey@redhat.com>
      
      	* java/text/SimpleDateFormat.java (computeCenturyStart): New
      	method.
      	(defaultCenturyStart): Use it.
      	(readObject): Likewise.
      	(SimpleDateFormat): Clear the calendar.  Set the grouping on the
      	number format.
      	(parse): Copy the calendar before modifying it.  Correctly handle
      	the time zone.
      
      	* java/util/Calendar.java (clear): Set field value(s) to 0.
      
      2001-05-10  Jeff Sturm  <jsturm@one-point.com>
      
      	* Calendar.java (get): Clear areFieldsSet if requested field
      	is not set.
      	(set): Unset fields that depend on new value.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41942 138bc75d-0d04-0410-961f-82ee72b054a4
      fcd5d3ed
  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. 02 Apr, 2001 1 commit
  4. 07 Feb, 2001 1 commit
  5. 20 Jan, 2001 1 commit
  6. 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
  7. 15 Dec, 2000 1 commit
  8. 06 Dec, 2000 1 commit
  9. 04 Dec, 2000 1 commit
  10. 28 Nov, 2000 2 commits
    • warrenl's avatar
      * java/text/DateFormatSymbols.java (zoneStringsDefault): Added · e3088a0f
      warrenl authored
      	more time zone entries.
      	* java/text/SimpleDateFormat.java (format): Added case for
      	TIMEZONE_FIELD.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37824 138bc75d-0d04-0410-961f-82ee72b054a4
      e3088a0f
    • warrenl's avatar
      * Makefile.am: Added natTimeZone.cc. · 1fbe9097
      warrenl authored
      	* Makefile.in: Rebuilt.
      	* gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
      	* java/text/DateFormatSymbols.java (ampms): Made package private.
      	(eras): Made package private.
      	(months): Made package private.
      	(shortMonths): Made package private.
      	(shortWeekdays): Made package private.
      	(weekdays): Made package private.
      	(formatPrefixes): New private field.
      	(localPatternCharsDefault): Made private.
      	(dateFormats): New package private field.
      	(timeFormats): New package private field.
      	(formatsForKey): New private method.
      	(DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
      	(DateFormatSymbols(DateFormatSymbols)): Ditto.
      	* java/text/SimpleDateFormat.java: Merged with Classpath.
      	* java/util/TimeZone.java: Merged with Classpath.
      	* java/util/natTimeZone.cc: New file.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37808 138bc75d-0d04-0410-961f-82ee72b054a4
      1fbe9097
  11. 18 Nov, 2000 1 commit
    • tromey's avatar
      * java/lang/natString.cc: Include Locale.h. · 89d13b80
      tromey authored
      	(toUpperCase): Added `locale' argument.  Handle locale
      	sensitivity.
      	(toLowerCase): Added `locale' argument.  Handle locale
      	sensitivity.
      	(ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
      	CAPITAL_I): New defines.
      	* java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
      	final.
      	Import Locale.
      	(toUpperCase, toLowerCase): New methods.  Variants which accept
      	locale now native.
      
      	* java/lang/ExceptionInInitializerError.java (printStackTrace):
      	New methods.
      
      	* java/util/PropertyPermission.java: Re-merged from Classpath.
      
      	* java/text/RuleBasedCollator.java (getCollationElementIterator):
      	New method.
      	* java/text/StringCharacterIterator.java: Reindented.
      	(setText): New method.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37539 138bc75d-0d04-0410-961f-82ee72b054a4
      89d13b80
  12. 17 Nov, 2000 1 commit
    • tromey's avatar
      * java/text/CollationKey.java: Implement Comparable. · 580b82bc
      tromey authored
      	(compareTo(Object)): New method.
      	* java/text/Collator.java (compare(Object,Object)): New method.
      	Implement Comparator.
      
      	* java/util/zip/InflaterInputStream.java (available): New method.
      	(close): New method.
      	(read, available, skip, fill): Throw exception if stream closed.
      	* java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
      	getNextEntry): Throw exception if closed.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37525 138bc75d-0d04-0410-961f-82ee72b054a4
      580b82bc
  13. 10 Oct, 2000 1 commit
    • warrenl's avatar
      * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added. · b6d02719
      warrenl authored
      	* java/sql/Date.java (serialVersionUID): New field.
      	* java/sql/Time.java (serialVersionUID): New field.
      	* java/sql/Timestamp.java (serialVersionUID): New field.
      	* java/text/ChoiceFormat.java (serialVersionUID): New field.
      	* java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
      	* java/text/DateFormatSymbols.java (serialVersionUID): New field.
      	* java/text/DecimalFormat.java (serialVersionOnStream): New field.
      	(readObject): New serialization method.
      	* java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
      	(serialVersionOnStream): New field.
      	(readObject): New serialization method.
      	(getMonetaryDecimalSeparator): New method.
      	(setMonetaryDecimalSeparator): New method.
      	* java/text/NumberFormat.java (maxFractionDigits): New field.
      	(maxIntegerDigits): New field.
      	(minFractionDigits): New field.
      	(minIntegerDigits): New field.
      	(serialVersionOnStream): New field.
      	(serialVersionUID): New field.
      	(readObject): New serialization method.
      	(writeObject): New serialization method.
      	* java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
      	(serialVersionOnStream): New field.
      	(serialVersionUID): New field.
      	(readObject): New serialization method.
      
      Serialization mods.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36831 138bc75d-0d04-0410-961f-82ee72b054a4
      b6d02719
  14. 08 Sep, 2000 1 commit
    • warrenl's avatar
      * java/beans/PropertyChangeEvent.java (serialVersionUID): Added. · 6e64d83e
      warrenl authored
      	* java/beans/PropertyVetoException.java (serialVersionUID): Added.
      	* java/io/File.java (writeObject): Added.
      	(readObject): Added.
      	(serialVersionUID): Added.
      	* java/io/ObjectOutputStream.java (writeObject): Initialized
      	fieldsAlreadyWritten before recursion rather than after.
      	* java/io/ObjectStreamClass.java (serialVersionUID): Added.
      	* java/io/OptionalDataException.java (serialVersionUID): Added.
      	(OptionalDataException): Made package private.
      	* java/io/SyncFailedException.java (SyncFailedException): Removed
      	default constructor to match spec.
      	* java/lang/Boolean.java (serialVersionUID): Added.
      	* java/lang/Byte.java (serialVersionUID): Added.
      	* java/lang/Character.java (serialVersionUID): Added.
      	* java/lang/Double.java (serialVersionUID): Added.
      	* java/lang/Float.java (serialVersionUID): Added.
      	* java/lang/Integer.java (serialVersionUID): Added.
      	* java/lang/Long.java (serialVersionUID): Added.
      	* java/lang/Number.java (serialVersionUID): Added.
      	* java/lang/Short.java (serialVersionUID): Added.
      	* java/lang/String.java (serialVersionUID): Added.
      	* java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
      	to match spec.
      	* java/lang/reflect/InvocationTargetException.java
      	(serialVersionUID): Added.
      	* java/net/URL.java (handler): Made transient.
      	(hashCode): Added field for serialization, per spec. and use
      	cached value if available.
      	(serialVersionUID): Added.
      	(URL): Initialize hashCode.
      	(set): Adjust hashCode.
      	(readObject): New Method to initialize the protocol handler when
      	deserializing.
      	(writeObject): New method.
      	* java/text/BreakIterator.java: Removed 'implements Serializable'.
      	* java/text/Collator.java: Removed 'implements Serializable'.
      	* java/util/GregorianCalendar.java (serialVersionUID): Added.
      	* java/util/Properties.java (serialVersionUID): Added.
      	* java/util/Random.java (serialVersionUID): Added.
      	(seed): Made private.
      	(nextNextGaussian): Made private.
      	(haveNextNextGaussian): Made private.
      	* java/util/Stack.java (serialVersionUID): Added.
      	* java/util/TimeZone.java (serialVersionUID): Added.
      	* java/util/Vector.java (serialVersionUID): Added.
      
      Serialization mods.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36272 138bc75d-0d04-0410-961f-82ee72b054a4
      6e64d83e
  15. 27 Jun, 2000 1 commit
    • warrenl's avatar
      * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue. · b9234e6c
      warrenl authored
      	(newVal): Renamed to newValue.
      	* java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
      	* java/beans/beancontext/BeanContextServiceRevokedEvent.java
      	(revokeNow): Renamed to invalidateRefs.
      	* java/io/OptionalDataException.java: Updated FIXME.
      	(eof): New placeholder field.
      	(length); Ditto.
      	* java/io/WriteAbortedException.java (message): Made transient.
      	* java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
      	* java/lang/Throwable.java (stackTrace): Made transient.
      	* java/net/InetAddress.java: Made Serializable.
      	* java/security/KeyPair.java: Made Serializable.
      	* java/security/Provider.java: Replaced with Classpath version that
      	implements serialization and proper methods.
      	* java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
      	(limits): Renamed to choiceLimits.
      
      Serialization changes per:
      http://java.sun.com/products/jdk/1.2/docs/api/serialized-form.html
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34726 138bc75d-0d04-0410-961f-82ee72b054a4
      b9234e6c
  16. 04 May, 2000 1 commit
    • tromey's avatar
      * java/util/Locale.java (Locale): Don't explicitly check for · c3a5f165
      tromey authored
      	null.
      	* java/util/Hashtable.java (containsKey): Don't explicitly check
      	for null.
      	(get): Likewise.
      	* java/util/BitSet.java (and, or, xor): Don't explicitly check for
      	null.
      	* java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
      	for null.
      	* java/text/StringCharacterIterator.java
      	(StringCharacterIterator): Don't check for null.
      	* java/text/ChoiceFormat.java (setChoices): Don't explicitly check
      	for null pointer.
      	* java/net/MulticastSocket.java (joinGroup): Don't explicitly
      	check for null pointer.
      	(leaveGroup): Likewise.
      	* java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
      	comment.
      	(setData): Likewise.
      	* java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
      	for `p==null'.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33671 138bc75d-0d04-0410-961f-82ee72b054a4
      c3a5f165
  17. 11 Apr, 2000 1 commit
  18. 07 Mar, 2000 1 commit
  19. 03 Feb, 2000 1 commit
    • tromey's avatar
      * java/util/Calendar.java (toString): New method. · fe03e3ea
      tromey authored
      	* java/util/SimpleTimeZone.java (clone): New method.
      	(toString): New method.
      	* java/util/TimeZone.java (clone): New method.
      	* java/text/SimpleDateFormat.java (clone): New method.
      	* java/text/NumberFormat.java (clone): New method.
      	(equals): New method.
      	* java/text/Format.java (clone): New method.
      	* java/text/DateFormatSymbols.java (DateFormatSymbols): New
      	constructor.
      	(clone): New method.
      	* java/text/DateFormat.java (clone): New method.
      	* java/text/Collator.java (clone): New method.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31775 138bc75d-0d04-0410-961f-82ee72b054a4
      fe03e3ea
  20. 19 Jan, 2000 1 commit
  21. 22 Sep, 1999 1 commit
  22. 10 Sep, 1999 1 commit
    • tromey's avatar
      * configure: Rebuilt. · 5e25b6c0
      tromey authored
      	* configure.in: Build include/Makefile.
      	* Makefile.in: Rebuilt.
      	* Makefile.am (SUBDIRS): Added gcj and include.
      	(install-data-local): New target.
      	(extra_headers): New macro.
      	* include/Makefile.in: New file.
      	* include/Makefile.am: New file.
      
      	* interpret.cc: Don't include gcj/field.h or gcj/cni.h.
      	* java/lang/reflect/natField.cc: Don't include gcj/field.h or
      	gcj/cni.h.
      	* boehm.cc: Don't include java-threads.h or gcj/field.h.
      	* resolve.cc: Include config.h.
      	* defineclass.cc: Include config.h.
      	* include/java-interp.h: Don't include config.h.
      	* include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
      	cni.h.
      
      	* gcj/javaprims.h: Regenerated namespace decls.
      	* classes.pl (scan): Don't put `;' after closing brace.
      
      	* Makefile.in: Rebuilt.
      	* Makefile.am (INCLUDES): Added -I for top_srcdir.
      	* configure.in: Create gcj/Makefile.
      	* gcj/Makefile.in: New file.
      	* gcj/Makefile.am: New file.
      	* java/lang/Object.h: Don't include any other headers.
      	* gcj/array.h: Renamed from include/java-array.h.
      	* gcj/field.h: Renamed from include/java-field.h.
      	* gcj/method.h: Renamed from include/java-method.h.
      	* gcj/cni.h, gcj/javaprims.h: Moved from include/.
      	Updated all files to reflect new include structure.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29278 138bc75d-0d04-0410-961f-82ee72b054a4
      5e25b6c0
  23. 23 Jun, 1999 1 commit
    • warrenl's avatar
      * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK. · 9af90df8
      warrenl authored
      	* java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
      	* java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
      	is not final per JDK.
      	* java/util/PropertyResourceBundle.java (handleGetObject): Method is
      	public per JDK.
      	* java/util/zip/DataFormatException.java: Class extends Exception.
      	* java/util/zip/Deflater.java (finalize): Method is protected per JDK.
      	* java/util/zip/ZipEntry.java: Class implements ZipConstants.
      	* java/util/zip/ZipInputStream.java: ditto.
      	(closeEntry): Changed method name to match JDK spec.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27717 138bc75d-0d04-0410-961f-82ee72b054a4
      9af90df8
  24. 10 Jun, 1999 2 commits
  25. 08 May, 1999 1 commit
  26. 30 Apr, 1999 1 commit
    • tromey's avatar
      * java/lang/StringBuffer.java (ensureCapacity): Don't resize · d41dfd6c
      tromey authored
      	vector when shared.
      	* java/util/Locale.java (Locale(String,String)): Implement in
      	terms of 3-argument version; variant now defaults to empty
      	string.
      	(toString): Assume variant is not null.
      	(equals): Assume all strings are not null.
      	(Locale): Throw NullPointerException if any argument is null.
      	* java/util/ResourceBundle.java (getBundle): Don't try the base
      	name; now implicit in partialGetBundle call.
      	(trySomeGetBundle): Search for parent bundles and call setParent
      	as required.
      	(partialGetBundle): Added `langStop' argument.  Use
      	`Locale.toString' to compute bundleName.
      	(resource_cache): New static field.
      	(partialGetBundle): Cache the returned resource bundle.  Now
      	synchronized.
      	* gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
      	missing `<'.
      	* mauve-libgcj: Enable Collator and RuleBasedCollator.
      	* java/text/natCollator.cc (decomposeCharacter): `base' now
      	`const'.
      	* Makefile.in: Rebuilt.
      	* Makefile.am (ordinary_java_source_files): Added
      	CollationElementIterator, CollationKey, Collator,
      	RuleBasedCollator.
      	(nat_source_files): Added natCollator.cc.
      	* java/text/RuleBasedCollator.java (ceiNext): No longer static.
      	(compare): Pass `this' to CollationElementIterator constructor.
      	(getCollationElementIterator): Likewise.
      	(ceiNext): Fix off-by-one error when finding initial substring.
      	(next): Correctly mask off bits when computing return value.
      	Fixed return values when one string is shorter than the other.
      	* java/text/CollationElementIterator.java (collator): New field.
      	(CollationElementIterator): Added collator argument.
      	(next): Call ceiNext on collator object.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26707 138bc75d-0d04-0410-961f-82ee72b054a4
      d41dfd6c
  27. 26 Apr, 1999 2 commits
  28. 07 Apr, 1999 1 commit