OSDN Git Service

improve open-coding of complex divide, use new method in g77
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
index daba9ef..b554fb5 100644 (file)
@@ -1,5 +1,322 @@
+1999-05-17  Tom Tromey  <tromey@cygnus.com>
+
+       * java/lang/natSystem.cc (init_properties): URL now points to
+       sourceware.
+
+1999-05-12  Per Bothner  <bothner@cygnus.com>
+
+       * java/util/Calendar.java (set):  First call computeFields if needed.
+       * java/util/natGregorianCalendar.cc (computeTime):  Cast 1000 to jlong.
+       
+1999-05-12  Tom Tromey  <tromey@cygnus.com>
+
+       * configure: Rebuilt.
+       * configure.in: Look for -ldl when using the Boehm collector.
+       Look for sched_yield in -lposix4.
+
+1999-05-12  Per Bothner  <bothner@cygnus.com>
+
+       * java/io/File.java (mkdirs):  Handle a null parent directory.
+
+1999-05-12  Tom Tromey  <tromey@cygnus.com>
+
+       * include/javaprims.h: Updated namespace declarations.
+       * classes.pl (scan): Uniquify class list.
+       * Makefile.in, configure: Rebuilt.
+       * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
+       (built_java_source_files): New macro.
+       (nat_headers): Added built_java_source_files.
+       (javao_files): Likewise.
+       (EXTRA_libgcj_la_SOURCES): Likewise.
+       (libgcj.zip): Create built class files.
+       ($(built_java_source_files:.java=.class)): New target.
+       (jv_convert_LDADD): Added -L$(here)/.libs.
+       * configure.in: Create links for ConcreteProcess.java and
+       natConcreteProcess.cc.
+       * java/lang/Runtime.java (exec): Create a ConcreteProcess.
+       * java/lang/natEcosProcess.cc: New file.
+       * java/lang/EcosProcess.java: New file.
+       * java/lang/PosixProcess.java: New file.
+       * java/lang/natPosixProcess.cc: New file.
+
+1999-05-12  Warren Levy  <warrenl@cygnus.com>
+
+       * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
+       * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
+       * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
+       (connect): Throw ConnectException.
+
+1999-05-11  Tom Tromey  <tromey@cygnus.com>
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
+       * libgcj.spec.in: Don't use `+'.  Instead, put old lib spec after
+       our libraries.
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
+       and it causes problems with libtool.
+
+       * Makefile.in, configure: Rebuilt.
+       * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
+       (jv_convert_LDADD): Added ZLIBS.  Removed -lm, -lc, -lgcc.
+       (jv_convert_DEPENDENCIES): Added ZDEPS.
+       * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
+       directory.
+       (THREADSPEC): Added `-L' to point to qthreads build directory.
+       (ZLIBS): New subst.
+       (ZDEPS): New subst.
+
+       * configure, Makefile.in: Rebuilt.
+       * Makefile.am (toolexeclib_DATA): New macro.
+       * configure.in: Create libgcj.spec.  Look for -lsocket and -lnsl.
+       Recognize --with-system-zlib.
+       (GCSPEC): New subst.
+       (THREADSPEC): New subst.
+       (SYSTEMSPEC): New subst.
+       (ZLIBSPEC): New subst.
+       * libgcj.spec.in: New file.
+
+1999-05-10  Tom Tromey  <tromey@cygnus.com>
+
+       * java/io/InputStreamReader.java (read): If length is 0, return
+       0.  Reset `wpos' and `wcount' when buffer has been filled and
+       emptied.
+
+       * java/util/Properties.java (save): Removed `FIXME' comment.
+       (load): Invalid characters in \u now treated as terminators.
+       Make sure to append character resulting from `\' handling.
+       Cast to `char' when appending to key or value.
+       (skip_ws): Inverted test for whitespace.
+
+       * java/io/RandomAccessFile.java (RandomAccessFile): Removed
+       `FIXME' comment.
+       (readLine): Likewise.
+       (readFully): Implemented.
+
+       * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
+
+       * java/awt/natToolkit.cc: Added copyright header.
+       * java/util/zip/InflaterInputStream.java: Added copyright header.
+
+       * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
+       comment.
+       * java/io/SequenceInputStream.java (SequenceInputStream): Removed
+       `FIXME' comment.
+       (getNextStream): Likewise.
+
+       * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
+       locale.toString().
+       (getBundle): Don't explicitly throw null pointer exception.
+
+       * gnu/gcj/RawData.java: Added copyright header.
+
+       * include/jni.h (_Jv_va_list): Always define as va_list.
+
+1999-05-9  Anthony Green  <green@cygnus.com>
+
+       * java/text/DateFormat.java (computeInstance): Separate time
+       and date styles.
+       (getDateTimeInstance): Ditto.
+       (getDateTimeInstance(int,int)): New method.
+
+        * Makefile.in: Rebuilt.
+       * Makefile.am (ordinary_java_source_files): Add new classes.
+
+       * java/util/PropertyResourceBundle.java: New file.
+       * gnu/gcj/util/EnumerationChain.java: New file.
+
+1999-05-07  Tom Tromey  <tromey@cygnus.com>
+
+       * acconfig.h (GCJVERSION): New undef.
+       * java/lang/natSystem.cc (init_properties): Define java.version,
+       java.class.version, os.name, os.arch, os.version.
+       Include <sys/utsname.h> if required.
+       * configure: Rebuilt.
+       * configure.in: Compute and define GCJVERSION.
+
+       * java/lang/natSystem.cc (default_file_encoding): Now static.
+
+       * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
+
+       * libtool-version: New file.
+       * Makefile.in: Rebuilt.
+       * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
+       -release.
+
+       * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
+       Comment out FieldPosition, ParsePosition, and SimpleDateFormat
+       again (oops).
+
+       * mauve-libgcj: Test more from java.text.  Don't mention 1.1 tests
+       (we pick those up already).
+
+1999-05-05  Per Bothner  <bothner@cygnus.com>
+
+       * java/awt/*:  Check a bunch of classes, a few complete, but mostly
+       stub classes.  (This is enough to get Kawa to compile against libgcj.)
+
+       * gnu/gcj/RawData.java:  New class.
+       * doc/cni.sgml:  Document RawData.
+
+       * java/util/zip/InflaterInputStream.java:  New stub class.
+       * java/util/zip/ZipInputStream.java:  New class.  Partly works.
+       * java/util/zip/ZipConstants.java:  Add two (internal) constants.
+       * java/util/zip/ZipEntry.java (timeFromDOS):  New static method.
+       * java/util/zip/ZipFile.java:  Now mostly works (unless compressed).
+       * java/util/zip/ZipOutputStream.java:  Start implementation.
+       
+       * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING):  New macro.
+       (default_file_encoding):  New global, initial value is above macro.
+       (init_properties):  Default file.encoding to default_file_encoding.
+       
+       * Makefile.am:  Add new classes.
+
+1999-05-05  Tom Tromey  <tromey@cygnus.com>
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (CLEANFILES): Don't mention $(class_files).
+       (clean-local): New target
+
+       * java/lang/natRuntime.cc: Include <ltdl.h> if required.
+       (load, loadLibrary): Now native.
+       (init): New method.
+       * java/lang/Runtime.java (load, loadLibrary): Now native.
+       (init): New native method.
+       (Runtime): Use init.
+       * prims.cc: Include <ltdl.h> if required.
+       (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
+
+1999-05-05  Gilles Zunino  <Gilles.Zunino@hei.fr>
+
+       * configure.in: Switch from irix threads to posix threads
+       * configure: Regenerate.
+
+1999-04-30  Tom Tromey  <tromey@cygnus.com>
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (jv_convert_LDADD): Added -lgcc.
+
+1999-04-29  Tom Tromey  <tromey@cygnus.com>
+
+       * java/lang/StringBuffer.java (ensureCapacity): Don't resize
+       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.
+
+1999-04-26  Tom Tromey  <tromey@cygnus.com>
+
+       * natCollator.cc: New file.
+
+       * java/util/GregorianCalendar.java (setDefaultTime): New method.
+       (GregorianCalendar): Use it in all constructors.
+       * java/util/Calendar.java (Calendar): Changed argument name to
+       `zone' to match code.
+
+       * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
+       * java/text/CollationKey.java: New file.
+       * java/text/CollationElementIterator.java: New file.
+       * java/text/Collator.java: New file.
+       * java/text/RuleBasedCollator.java: New file.
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
+       (jv_convert_LDADD): Explicltly add -lm -lc.
+
+1999-04-26  Tom Tromey  <tromey@cygnus.com>
+
+       * configure, Makefile.in: Rebuilt.
+       * configure.in: Added AM_PROG_LIBTOOL.
+       (GCOBJS): Use `.lo' form of files.
+       (THREADOBJS): Likewise.
+       (GCDEPS): Use `.la' form of library.
+       (GCLIBS): Set to be the same as GCDEPS.
+       (THREADDEPS): Use `.la' form of library.
+       (THREADLIBS): Set to be the same as THREADDEPS.
+       * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
+       toolexeclib_LIBRARIES.
+       (libgcj_la_SOURCES): Renamed for libtoolization.
+       (EXTRA_libgcj_la_SOURCES): Likewise.
+       (libgcj_la_DEPENDENCIES): Likewise.
+       (libgcj_la_LIBADD): Likewise.
+       ($(nat_files)): Use LTCXXCOMPILE.
+       ($(c_files)): Use LTCOMPILE.
+       (GCJCOMPILE): New macro.
+       (.class.o): Use it.
+       (.java.o): Likewise.
+       ($(javao_files)): Likewise.
+       (jv_convert_LINK): Use LIBTOOL.
+       (nat_files): Use `.lo' files.
+       (c_files): Likewise.
+       (javao_files): Likewise.
+       (.class.lo): Renamed.
+       (.java.lo): Likewise.
+       ($(nat_files)): Depend on %.lo.
+       ($(c_files)): Likewise.
+       ($(javao_files)): Likewise.
+       (jv_convert_LDADD): Link against .lo files.
+       (jv_convert_DEPENDENCIES): Depend on .lo files.
+       (maintainer-check): Depend on libgcj.la, but examine .a file.
+       (jv_convert_DEPENDENCIES): Depend on libgcj.la.
+       (libgcj_la_LDFLAGS): New macro.
+
+1999-04-23  Warren Levy  <warrenl@cygnus.com>
+
+       * Makefile.am: Added URLDecoder and URLEncoder.
+       * Makefile.in: Rebuilt.
+
+       * java/net/ServerSocket.java (setSocketFactory): Renamed from
+       setSocketImplFactory to match spec.
+       * java/net/Socket.java (getSoLinger): Changed return type to
+       match spec.
+
+       * java/net/URLDecoder.java: New file.
+       * java/net/URLEncoder.java: New file.
+
 1999-04-21  Tom Tromey  <tromey@cygnus.com>
 
+       * java/lang/natString.cc (getBytes): Reverted earlier change and
+       applied correct fix from Per Bothner.
+
+       * java/lang/String.java: Don't throw
+       UnsupportedEncodingException.
+
        * java/lang/natString.cc (getBytes): Correctly size result
        buffer.  From Bryce McKinlay <bryce@albatross.co.nz>.