aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
AgeCommit message (Collapse)AuthorFilesLines
2001-07-23configure.host: Enable hash synchronization for alpha*-*.Jeff Sturm1-0/+38
* configure.host: Enable hash synchronization for alpha*-*. * include/posix-threads.h (_Jv_ThreadSelf): Added inline function for alpha. * java/lang/natObject.cc (compare_and_swap, release_set, compare_and_swap_release): Added inline functions for alpha. From-SVN: r44251
2001-07-18natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC 2533 socket options ↵Rainer Orth1-1/+10
IPV6_JOIN_GROUP... * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling back to old RFC 2133 variants if missing. From-SVN: r44130
2001-07-18natFileWin32.cc (_access): Renamed.Tom Tromey3-12/+15
* java/io/natFileWin32.cc (_access): Renamed. (_stat): Likewise. * java/io/natFile.cc (_access): Renamed. (_stat): Likewise. * java/io/File.java (access, stat): Add leading `_' to name. Updated all callers. From-SVN: r44124
2001-07-17LinkedList.java (clone): Clear the copy list with clear(), not by setting ↵Bryce McKinlay1-8/+2
its size field. * java/util/LinkedList.java (clone): Clear the copy list with clear(), not by setting its size field. From-SVN: r44057
2001-07-13re PR libgcj/3426 (java.io.InputStreamReader, infinite loop)Tom Tromey2-62/+59
Fix for PR libgcj/3426: * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h, errno.h. (read): Throw exception if character conversion fails. * java/io/BufferedInputStream.java (refill): Now package-private. * java/io/InputStreamReader.java (ready): Simplified. (refill): New method. (read): Use it. Co-Authored-By: David Brownell <david-b@pacbell.net> From-SVN: r43975
2001-07-12Report from Henner Zeller:Tom Tromey1-5/+8
* java/io/FileOutputStream.java (FileOutputStream): Throw FileNotFoundException, not IOException. From-SVN: r43966
2001-07-10Makefile.am: Added `java/lang/ThreadLocal.java'.Alexandre Petit-Bianco1-0/+165
libjava: 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com> * Makefile.am: Added `java/lang/ThreadLocal.java'. * Makefile.in: Regenerate. * java/lang/ThreadLocal.java: Initial import. libjava/testsuite: 2001-07-10 Alexandre Petit-Bianco <apbianco@readhat.com> * libjava.lang/TLtest.java: New file. * libjava.lang/TLtest.out: New file. (http://gcc.gnu.org/ml/java-patches/2001-q3/msg00042.html ) From-SVN: r43915
2001-07-05For PR java/3562:Tom Tromey1-2/+2
* java/lang/Class.h (Class(void)): Now private. Removed implementation. From dmorsberger@sensysdl.com. From-SVN: r43781
2001-07-02For PR libgcj/3523:Jeremy Nimmer1-2/+2
2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu> For PR libgcj/3523: * java/io/LineNumberReader.java (reset): Pass correct arguments to countLines. From-SVN: r43683
2001-06-26natFileDescriptorPosix.cc (open): Change error message formatting.Tom Tromey1-1/+3
* java/io/natFileDescriptorPosix.cc (open): Change error message formatting. From David Brownell. From-SVN: r43564
2001-06-19BigInteger.java (byteArrayToIntArray): Don't include extraneous/malformed ↵Mark J. Roberts1-5/+1
sign word. 2001-06-19 Mark J. Roberts <mjr@statesmean.com> * java/math/BigInteger.java (byteArrayToIntArray): Don't include extraneous/malformed sign word. From-SVN: r43455
2001-06-15natRuntime.cc (_Jv_FindSymbolInExecutable): Return NULL if no library on the ↵Tom Tromey1-1/+4
list has the symbol. * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return NULL if no library on the list has the symbol. (init): Call add_library on the program itself. * prims.cc (JvRunMain): Initialize Runtime before searching for `main'. (_Jv_RunMain): Likewise. From-SVN: r43413
2001-06-14re PR libgcj/3144 (java.lang.Date.compareTo() not supported)Tom Tromey1-143/+410
Fix for PR libgcj/3144: * java/util/Date.java: Merged with Classpath. From-SVN: r43374
2001-06-08re PR libgcj/3059 (System doesn't set java.home property)Tom Tromey1-2/+5
Fix for PR libgcj/3059: * java/lang/natSystem.cc (init_properties): Define `java.home'. * Makefile.in: Rebuilt. * Makefile.am (AM_CXXFLAGS): Define PREFIX. From-SVN: r43040
2001-06-05natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors table index is ↵Martin Kahlert1-6/+16
within allowed bounds. 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com> Bryce McKinlay <bryce@waitaki.otago.ac.nz> * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors table index is within allowed bounds. Ensure that we dont try to access class itable at a negative offset. Avoid an ancestor table lookup if source is a primitive type class. (isInstance): Remove redundant isPrimitive() check. Co-Authored-By: Bryce McKinlay <bryce@waitaki.otago.ac.nz> From-SVN: r42898
2001-06-04PublicKey.java: Extend Key.Tom Tromey2-4/+4
* java/security/PublicKey.java: Extend Key. * java/security/PrivateKey.java: Extend Key. From-SVN: r42886
2001-06-02!defined(USE_LTDL) fixAnthony Green1-0/+8
From-SVN: r42813
2001-06-02USE_LIBFFI changeAnthony Green1-0/+11
From-SVN: r42791
2001-06-01natFile.cc (get_entry): Removed functions.Jeff Sturm1-25/+9
* natFile.cc (get_entry): Removed functions. (performList): Call readdir or readdir_r if HAVE_READDIR_R defined. Allocate enough storage for d_name if using readdir_r. From-SVN: r42767
2001-05-31natFileDescriptorPosix.cc (open): Allocate buffer to correct size.Tom Tromey1-21/+31
* java/io/natFileDescriptorPosix.cc (open): Allocate buffer to correct size. (write): Loop until write completes. From Corey Minyard. From-SVN: r42749
2001-05-31Rectangle2D.java: fix doc typo.Laurent Guerby1-1/+1
2001-05-29 Laurent Guerby <guerby@acm.org> * java/awt/geom/Rectangle2D.java: fix doc typo. From-SVN: r42746
2001-05-31DriverManager.java (getDrivers): Handle case where driver's class loader is ↵Tom Tromey1-3/+8
null. * java/sql/DriverManager.java (getDrivers): Handle case where driver's class loader is null. From Corey Minyard. From-SVN: r42745
2001-05-24natString.cc (init): Throw ArrayIndexOutOfBoundsException.Tom Tromey1-8/+10
* java/lang/natString.cc (init): Throw ArrayIndexOutOfBoundsException. (getChars): Likewise. (getBytes): Likewise. (valueOf): Likewise. From-SVN: r42531
2001-05-24configure.in: Only allow hash synchronization when POSIX threads are enabled.Tom Tromey1-1/+1
* configure.in: Only allow hash synchronization when POSIX threads are enabled. * java/lang/natObject.cc (alloc_heavy): Properly find `init' field of sync info object. From-SVN: r42530
2001-05-24[multiple changes]Tom Tromey5-26/+967
2001-05-23 Tom Tromey <tromey@redhat.com> * posix-threads.cc (_Jv_self_cache): Renamed from self_cache. * gcj/Makefile.in: Rebuilt. * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h. * gcj/javaprims.h: Include gcj/libgcj-config.h. * gcj/libgcj-config.h.in: New file. * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@. * configure: Rebuilt. * configure.in: Enable hash synchronization by default on some platforms. (HASH_SYNC_SPEC): New subst. (AC_CONFIG_HEADER): Added gcj/libgcj-config.h. Correctly use `test -z' instead of `test -n' in a couple places. (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to LIBGCJ_CXXFLAGS. * configure.host (enable_java_net_default): Initialize. (enable_hash_synchronization_default): New variable. 2001-05-23 Hans Boehm <Hans_Boehm@hp.com> * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash synchronization in use. (_Jv_MarkArray): Likewise. (_Jv_AllocBytes): Don't check return result. (handle_out_of_memory): New function. (_Jv_InitGC): Set GC_oom_fn. (trace_one_vtable): New global. (_Jv_AllocTraceOne): New function. * configure.in: Added --enable-hash-synchronization. * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc, java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked. * nogc.cc (_Jv_AllocObj): Throw out-of-memory. (_Jv_AllocArray): Likewise. (_Jv_AllocBytes): Likewise. (_Jv_AllocPtrFreeObject): New function. (_Jv_AllocTraceOne): Likewise. * posix-threads.cc (_Jv_ThreadRegister): Handle slow pthread_self(). (self_cache): New global. (_Jv_ThreadSelf_out_of_line): New function. * prims.cc (_Jv_AllocBytesChecked): Removed. (_Jv_ThrowNoMemory): New function. (_Jv_AllocObject): Don't check for null return from allocator. (_Jv_NewObjectArray): Likewise. (_Jv_AllocPtrFreeObject): New function. (_Jv_NewPrimArray): Allocate pointer-free object if possible. * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare. (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value. * include/boehm-gc.h (_Jv_AllocObj): Define. (_Jv_AllocPtrFreeObj): Define. * include/jvm.h (_Jv_AllocPtrFreeObj): Declare. (_Jv_ThrowNoMemory): Declare. (_Jv_AllocTraceOne): Declare. (_Jv_AllocBytesChecked): Removed. * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock, _Jv_MutexUnlock): Handle LOCK_DEBUG. (_Jv_ThreadSelf): Handle case where system pthread_self() is slow. * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as friend. * java/lang/Object.h (sync_info): Conditional upon presence of hash synchronization. * java/lang/natObject.cc: Much new code to handle thin locks and hash synchronization. * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free object if possible. From-SVN: r42519
2001-05-21Implement invocation interface; don't create new thread for main.Per Bothner2-26/+78
From-SVN: r42428
2001-05-21javaprims.h (_Jv_FormatInt): New declaration.Per Bothner6-38/+80
* gcj/javaprims.h (_Jv_FormatInt): New declaration. * java/lang/natString.cc (_JvFormatInt): New primitive, with logic taken from old Integer.toString code. (Integer::valueOf): Use _Jv_FormatInt. * java/lang/Integer.java (toString): Just use call String.valueOf. * java/lang/Long.java (toString): Fix typo in comment. * java/lang/String.java (valueOf(int)): Make native. * java/lang/StringBuffer.java (append(int)): Make native. * java/lang/natStringBuffer.cc: New file, for append(jint). * Makefile.am (ant_source_files): Add java/lang/natStringBuffer.cc. From-SVN: r42419
2001-05-18[multiple changes]Bryce McKinlay1-4/+3
2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz> * include/jvm.h: Move "#pragma GCC java_exceptions" to ... * gcj/javaprims.h: ... here. * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions". 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com> * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error with length of ioffset table. (_Jv_IsAssignableFrom): Likewise. From-SVN: r42248
2001-05-16SimpleDateFormat.java (parse): Handle non-dst time zones.Tom Tromey1-8/+18
* java/text/SimpleDateFormat.java (parse): Handle non-dst time zones. From-SVN: r42156
2001-05-15GregorianCalendar.java (computeTime): Only call getTimeZone() once.Tom Tromey1-1/+1
* java/util/GregorianCalendar.java (computeTime): Only call getTimeZone() once. From-SVN: r42121
2001-05-14SimpleDateFormat.java (parse): Clear DST_OFFSET and ZONE_OFFSET just before ↵Tom Tromey1-2/+4
computing the time. * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and ZONE_OFFSET just before computing the time. From-SVN: r42076
2001-05-11configure.in (ia64-*): Don't set SYSDEP_SOURCES.Richard Henderson1-9/+1
* configure.in (ia64-*): Don't set SYSDEP_SOURCES. * java/lang/natThrowable.cc: Don't use __ia64_backtrace. From-SVN: r41984
2001-05-11Makefile.in: Rebuilt.Tom Tromey2-3/+439
* Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added Polygon.java. * java/awt/Polygon.java: New file. * java/awt/geom/AffineTransform.java (setToRotation(double,double,double)): New method. (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM. (setToShear): Likewise. From-SVN: r41954
2001-05-10[multiple changes]Tom Tromey4-374/+1086
2001-05-10 Tom Tromey <tromey@redhat.com> * 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. From-SVN: r41942
2001-05-06Class.h (_Jv_Self): New union type.Bryce McKinlay2-7/+9
* java/lang/Class.h (_Jv_Self): New union type. (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to Jeff Sturm and Fergus Henderson. * java/lang/ClassLoader.java: Remove dead code fragment. From-SVN: r41876
2001-04-30natFile.cc (performSetReadOnly): Fix #ifdef test.Matt Kraai1-2/+2
2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu> * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test. (performDelete): Fix #endif placement. From-SVN: r41703
2001-04-28* java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader): Use _Jv_Malloc.Zack Weinberg1-2/+2
From-SVN: r41651
2001-04-26re PR libgcj/2237 (serialization doesn't throw exception on failure)Bryce McKinlay3-120/+74
Fix PR libgcj/2237: * java/io/ObjectStreamClass.java (setClass): Calculate serialVersionUID for local class and compare it against the UID from the Object Stream. Throw InvalidClassException upon mismatch. (setUID): Renamed to... (getClassUID): this. Return the calculated class UID rather than setting uid field directly. (getDefinedSUID): Removed. * java/io/ObjectInputStream.java (resolveClass): Use the three-argument Class.forName(). * java/io/InvalidClassException (toString): Don't include classname in result if it is null. From-SVN: r41567
2001-04-25natInetAddress.cc (java::net::InetAddress::aton): Wrap use of inet_pton in ↵Kaveh R. Ghazi1-1/+1
HAVE_INET6. * java/net/natInetAddress.cc (java::net::InetAddress::aton): Wrap use of inet_pton in HAVE_INET6. From-SVN: r41547
2001-04-25Forgot this file on last commit.Bryce McKinlay1-3/+1
From-SVN: r41544
2001-04-25decl.c (init_decl_processing): Add new class "protectionDomain" field.Bryce McKinlay105-1464/+11538
gcc/java: 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz> * decl.c (init_decl_processing): Add new class "protectionDomain" field. * class.c (make_class_data): Set initial value for "protectionDomain". libjava: 2001-04-25 Bryce McKinlay <bryce@albatross.co.nz> java.security merge and ClassLoader compliance fixes. * java/lang/Class.h (Class): Include ProtectionDomain.h. New protectionDomain field. (forName): Add initialize parameter. Fixes declaration to comply with JDK spec. * java/lang/natClass.cc (forName): Correct declaration of the three-arg variant. Honour "initialize" flag. (getProtectionDomain0): New method. * java/lang/Class.java: Fix forName() declaration. (getPackage): New method based on Classpath implementation. (getProtectionDomain0): New native method decl. (getProtectionDomain): New method. * java/lang/ClassLoader.java (getParent): Now final. (definedPackages): New field. (getPackage): New. (defineClass): New variant with protectionDomain argument. (definePackage): New. (getPackages): New. (findSystemClass): Now final. (getSystemResourceAsStream): Remove redundant "final" modifier. (getSystemResource): Remove redundant "final" modifier. (getResources): Now final. (protectionDomainPermission): New static field. (unknownProtectionDomain): Ditto. (defaultProtectionDomain): Ditto. (getSystemClassLoader): Now non-native. * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct arguments for Class.forName(). * java/lang/Package.java: New file. * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed. (instance): Static initialize singleton. (findClass): Override this, not findSystemClass. * java/lang/natClassLoader.cc (defineClass0): Set class's protectionDomain field as specified. (getSystemClassLoader): Removed. (findClass): Renamed from findSystemClass. Call the interpreter via URLClassLoader.findClass if loading class via dlopen fails. * java/security/*.java: java.security import/merge with Classpath. * java/security/acl/*.java: Likewise. * java/security/interfaces/*.java: Likewise. * java/security/spec/*.java: Likewise. * java/net/NetPermission.java: Likewise. * java/net/SocketPermission.java: Likewise. * gnu/java/security/provider/DefaultPolicy.java: Likewise. * Makefile.am: Add new classes. * Makefile.in: Rebuilt. * gcj/javaprims.h: CNI namespace rebuild. From-SVN: r41543
2001-04-22Makefile.in: Rebuilt.Tom Tromey1-0/+537
* Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added Line2D.java. * java/awt/geom/Line2D.java: Wrote. * java/awt/Menu.java (addNotify): Wrote. * java/awt/PopupMenu.java (addNotify): Implemented. (show): Likewise. * java/awt/Scrollbar.java (addNotify): Call super.addNotify. * java/awt/List.java (addNotify): Call super.addNotify. * java/awt/Label.java (addNotify): Call super.addNotify. * java/awt/FileDialog.java (addNotify): Call super.addNotify. * java/awt/Dialog.java (addNotify): Call super.addNotify. * java/awt/Choice.java (addNotify): Call super.addNotify. * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify. * java/awt/Checkbox.java (addNotify): Call super.addNotify. * java/awt/List.java (replaceItem): Notify peer. * java/awt/geom/Rectangle2D.java (Float.setRect(float,float,float,float)): New method. * java/awt/event/ContainerEvent.java (getContainer): Now returns Container. * java/awt/RenderingHints.java (Key): Class now public. * java/awt/Rectangle.java (Rectangle): Now implements Serializable. (getPathIterator): Removed. * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New constructor. * java/awt/FileDialog.java: Wrote. * java/awt/EventQueue.java (isDispatchThread): Now public. (invokeLater): Likewise. * java/awt/Component.java (setCursor): Update peer. (getFontMetrics): Use peer. * java/awt/ComponentOrientation.java (ComponentOrientation): Class now final. From-SVN: r41492
2001-04-22Makefile.in: Rebuilt.Tom Tromey21-52/+216
* Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added Line2D.java. * java/awt/geom/Line2D.java: Wrote. * java/awt/Menu.java (addNotify): Wrote. * java/awt/PopupMenu.java (addNotify): Implemented. (show): Likewise. * java/awt/Scrollbar.java (addNotify): Call super.addNotify. * java/awt/List.java (addNotify): Call super.addNotify. * java/awt/Label.java (addNotify): Call super.addNotify. * java/awt/FileDialog.java (addNotify): Call super.addNotify. * java/awt/Dialog.java (addNotify): Call super.addNotify. * java/awt/Choice.java (addNotify): Call super.addNotify. * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify. * java/awt/Checkbox.java (addNotify): Call super.addNotify. * java/awt/List.java (replaceItem): Notify peer. * java/awt/geom/Rectangle2D.java (Float.setRect(float,float,float,float)): New method. * java/awt/event/ContainerEvent.java (getContainer): Now returns Container. * java/awt/RenderingHints.java (Key): Class now public. * java/awt/Rectangle.java (Rectangle): Now implements Serializable. (getPathIterator): Removed. * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New constructor. * java/awt/FileDialog.java: Wrote. * java/awt/EventQueue.java (isDispatchThread): Now public. (invokeLater): Likewise. * java/awt/Component.java (setCursor): Update peer. (getFontMetrics): Use peer. * java/awt/ComponentOrientation.java (ComponentOrientation): Class now final. From-SVN: r41489
2001-04-21List.java: Wrote.Tom Tromey2-7/+571
* java/awt/List.java: Wrote. * java/awt/Dialog.java: Wrote. From-SVN: r41476
2001-04-20natSystem.cc (getSystemTimeZone): Adjust for DST.Warren Levy3-658/+251
* java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST. * 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. From-SVN: r41456
2001-04-12Makefile.am: Make a libtool convenience library.Bryce McKinlay1-7/+54
libffi: * Makefile.am: Make a libtool convenience library. * Makefile.in: Rebuilt. libjava: * java/io/File.java (normalizePath): New private method. (File (String)): Use normalizePath(). (File (String, String)): Likewise. * Makefile.am (libffi_files): Removed. (libgcj.la): Link libffi as a convenience library instead of refering to its object files directly. * Makefile.in: Rebuilt. From-SVN: r41298
2001-04-10natString.cc (_Jv_NewStringUtf8Const): Register finalizer.Per Bothner1-6/+12
* java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer. Recalculate hash, since Utf8Const's hash is only 16 bits. * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order bits of hash to calculate step for chaining. * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash when 2/3 full, rather than 3/4 full. From-SVN: r41233
2001-04-02PrintStream.java (out): Removed field.Tom Tromey1-37/+37
* java/io/PrintStream.java (out): Removed field. Fixes PR java/2449. (write): Call flush, not out.flush, per spec. (close): Flush output stream, per spec. Handle InterruptedIOException. (checkError): Likewise. (flush, print, write): Handle InterruptedIOException per spec. (PrintStream): Don't create BufferedOutputStream. (work_bytes): New field. (writeChars): Use work_bytes. Don't assume `out' is a BufferedOutputStream. From-SVN: r41014
2001-04-02re PR libgcj/2429 (java.text.MessageFormat should usefully set text on ↵Torsten Rueger1-1/+1
exceptions) 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com> * java/text/MessageFormat.java (setLocale): Added missing `else'. For PR libgcj/2429. From-SVN: r41012
2001-04-02natSystem.cc (init_properties): Revert yesterday's changes to ↵Bryce McKinlay4-34/+17
"file.separator"... * java/lang/natSystem.cc (init_properties): Revert yesterday's changes to "file.separator", "path.separator", and "java.io.tmpdir" property initialization. * java/io/File.java: Likewise. * java/io/natFile.cc (init_native): Likewise. * java/io/natFileWin32.cc (init_native): Likewise. From-SVN: r40994