aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
AgeCommit message (Collapse)AuthorFilesLines
2002-05-09ResourceBundle.java: New version from Classpath.Tom Tromey2-644/+765
* java/util/ResourceBundle.java: New version from Classpath. * java/util/Locale.java: Likewise. From-SVN: r53351
2002-05-07* java/lang/natString.cc (unintern): Fixed typo.Tom Tromey1-2/+2
From-SVN: r53265
2002-05-03natSystem.cc (getSystemTimeZone): Use HAVE_UNDERSCORE_TIMEZONE.David Billinghurst1-0/+2
2002-05-03 David Billinghurst <David.Billinghurst@riotinto.com> Tom Tromey <tromey@redhat.com> * java/lang/natSystem.cc (getSystemTimeZone): Use HAVE_UNDERSCORE_TIMEZONE. * include/config.h.in: Rebuilt. * acconfig.h (HAVE_UNDERSCORE_TIMEZONE, HAVE_BACKTRACE): Undef. * aclocal.m4, configure: Rebuilt. * acinclude.m4: Run AC_EXEEXT. * configure.in: Adjust test for `timezone' so it fails on Cygwin. Add test for `_timezone'. Co-Authored-By: Tom Tromey <tromey@redhat.com> From-SVN: r53117
2002-05-02natPlainSocketImpl.cc: Include sys/ioctl.h and sys/filio.h, if present.Jerome Marc1-0/+12
2002-05-02 Jerome Marc <marcjero@yahoo.com> * java/net/natPlainSocketImpl.cc: Include sys/ioctl.h and sys/filio.h, if present. From-SVN: r53050
2002-04-30re PR libgcj/6301 (gij -jar does not work)Tom Tromey1-2/+7
* java/io/BufferedReader.java (fill): Handle case where markPos point to ignored \n. Fixes PR libgcj/6301. From-SVN: r52982
2002-04-29ieeefp.h: Define __IEEE_BIG_ENDIAN for S/390.Gerhard Tonn1-0/+4
2002-04-29 Gerhard Tonn <GerhardTonn@swol.de> * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN for S/390. From-SVN: r52874
2002-04-29natFileDescriptorWin32.cc (open): Move file pointer to end of file in APPEND ↵Adam King1-0/+7
mode. 2002-04-29 Adam King <aking@dreammechanics.com> * java/io/natFileDescriptorWin32.cc (open): Move file pointer to end of file in APPEND mode. From-SVN: r52869
2002-04-18File.java (normalizePath): Add Win32 support for auto conversion of a '/' ↵Adam King1-0/+5
path separator to Win32's '\'... * java/io/File.java (normalizePath): Add Win32 support for auto conversion of a '/' path separator to Win32's '\' separator. From-SVN: r52447
2002-04-16natFileWin32.cc (performList): Return the correct array type.Adam King1-31/+24
2002-04-16 Adam King <aking@dreammechanics.com> Tom Tromey <tromey@redhat.com> * java/io/natFileWin32.cc (performList): Return the correct array type. Don't duplicate the creation of a File since it's already done earlier in the method and the existing code would cause a ArrayStoreException. Don't use fixed-size array. (_access, _stat, attr, getCanonicalPath, performMkdir, performRenameTo): Don't use fixed-size array. (getCanonicalPath): Use throw, not _Jv_Throw. Co-Authored-By: Tom Tromey <tromey@redhat.com> From-SVN: r52369
2002-04-15natPlainDatagramSocketImpl.cc (close): Set timeout to 0.Mark Wielaard2-0/+2
* java/net/natPlainDatagramSocketImpl.cc (close): Set timeout to 0. * java/net/natSocketImpl.cc (close): Likewise. From-SVN: r52312
2002-04-15natDouble.cc (parseDouble): Allow a number to end with the f/F/d/D modifiers.Adam King1-1/+11
2002-04-13 Adam King <aking@dreammechanics.com> * java/lang/natDouble.cc (parseDouble): Allow a number to end with the f/F/d/D modifiers. From-SVN: r52308
2002-04-10Makefile.in: Rebuilt.Tom Tromey2-3/+19
* Makefile.in: Rebuilt. * Makefile.am (java/lang/Thread.h): Mark _Jv_AttachCurrentThreadAsDaemon as friend. * gcj/javaprims.h (_Jv_AttachCurrentThreadAsDaemon): Declare. * gcj/cni.h (JvAttachCurrentThreadAsDaemon): New function. * java/lang/natThread.cc (_Jv_AttachCurrentThreadAsDaemon): New function. * java/lang/natRuntime.cc (_load): Recognize JNI_VERSION_1_4. * jni.cc (_Jv_JNI_GetVersion): Return JNI_VERSION_1_4. (_Jv_JNI_InvokeFunctions): Added _Jv_JNI_AttachCurrentThreadAsDaemon. (_Jv_JNI_GetEnv): Handle JNI_VERSION_1_4. (JNI_GetDefaultJavaVMInitArgs): Likewise. (JNI_CreateJavaVM): Likewise. (_Jv_JNI_AttachCurrentThread): Likewise. (_Jv_JNI_AttachCurrentThread): Added `is_daemon' argument. (_Jv_JNI_AttachCurrentThreadAsDaemon): New method. (_Jv_JNIFunctions): Initialize new fields. (_Jv_JNI_NewDirectByteBuffer): New function. (_Jv_JNI_GetDirectBufferAddress): Likewise. (_Jv_JNI_GetDirectBufferCapacity): Likewise. * include/jni.h (JNI_VERSION_1_4): New macro. (JNIInvokeInterface::AttachCurrentThreadAsDaemon): New field. (_Jv_JavaVM::AttachCurrentThreadAsDaemon): New method. (JNINativeInterface::NewDirectByteBuffer): New field. (JNINativeInterface::GetDirectBufferAddress): New field. (JNINativeInterface::GetDirectBufferCapacity): New field. (_Jv_JNIEnv::NewDirectByteBuffer): New method. (_Jv_JNIEnv::GetDirectBufferAddress): New method. (_Jv_JNIEnv::GetDirectBufferCapacity): New method. From-SVN: r52144
2002-04-08re PR libgcj/6187 (method distance of class java.awt.geom.Point2D causes ↵Alberto Biancardi1-1/+1
infinite recursion) 2002-04-08 Alberto Biancardi <alberto.biancardi@unipv.it> Fix for PR libgcj/6187: * java/awt/geom/Point2D.java (distance): Call distanceSq, not distance. From-SVN: r52027
2002-04-08AbstractMap.java (putAll): Use entrySet size.Mark Wielaard1-5/+5
* java/util/AbstractMap.java (putAll): Use entrySet size. (toString): Explicitly use getKey() and getValue(). From-SVN: r52008
2002-04-07Hashtable.java (contains): Remove NullPointer check.Mark Wielaard1-14/+8
* java/util/Hashtable.java (contains): Remove NullPointer check. (containsValue): Add NullPointer check. (remove): Always throw NullPointerException when key is null. From-SVN: r51994
2002-04-07natSystem.cc (init_properties): Call new function _Jv_platform_initProperties.Adam King1-16/+4
2002-04-07 Adam King <aking@dreammechanics.com> * java/lang/natSystem.cc (init_properties): Call new function _Jv_platform_initProperties. * win32 (_Jv_platform_initProperties): New function that adds Win32 support for the System properties os.name, os.arch, os.version, user.name, user.home, and user.dir. * include/posix.h, include/win32.h, posix.cc: New function _Jv_platform_initProperties. From-SVN: r51989
2002-04-07* java/lang/Character,java (isDefined): getType() != UNASSIGNED.Mark Wielaard1-1/+1
From-SVN: r51982
2002-04-07ArrayList.java (addAll(int,Collection)): System.arraycopy all of the ↵Mark Wielaard2-5/+17
remaining elements. * java/util/ArrayList.java (addAll(int,Collection)): System.arraycopy all of the remaining elements. * java/util/Vector.java (addAll(int,Collection)): Likewise. (removeRange): If toIndex == fromIndex do nothing, if toIndex < fromIndex throw IndexOutIfBoundsException. (removeAll): Always throw NullPointerException when collection is null. (retrainAll): Likewise. From-SVN: r51979
2002-04-06ArrayList.jva (removeRange): If toIndex == fromIndex do nothing...Mark Wielaard1-3/+7
* java/util/ArrayList.jva (removeRange): If toIndex == fromIndex do nothing, if toIndex < fromIndex throw IndexOutIfBoundsException. From-SVN: r51947
2002-04-04Arrays.java (qsort): Fix off-by-one errors and use of incorrect "hi" value ↵Bryce McKinlay1-42/+49
when count > 40. * java/util/Arrays.java (qsort): Fix off-by-one errors and use of incorrect "hi" value when count > 40. From-SVN: r51854
2002-04-04Modifier.java (toString(int,StringBuffer)): Fix ordering.Mark Wielaard1-8/+8
* java/lang/reflect/Modifier.java (toString(int,StringBuffer)): Fix ordering. From-SVN: r51848
2002-04-02natClassLoader.cc (findClass): Compare against `3', not `0'.Tom Tromey1-2/+3
* java/lang/natClassLoader.cc (findClass): Compare against `3', not `0'. From-SVN: r51764
2002-04-02IdentityHashMap.java (put): Set new threshold correctly when resizing table.Bryce McKinlay1-1/+1
* java/util/IdentityHashMap.java (put): Set new threshold correctly when resizing table. From-SVN: r51751
2002-04-01BitSet.java (BitSet(int)): if nbits < 0 throw NegativeArraySizeExceptionMark Wielaard1-6/+9
* java/util/BitSet.java (BitSet(int)): if nbits < 0 throw NegativeArraySizeException (clear(int)): Use sign extended shift. (flip(int)): Likewise. (get(int)): Likewise. (nextClearBit(int)): Likewise. (nextSetBit(int)): Likewise. (set(int)): Likewise. From-SVN: r51701
2002-03-29natPlainDatagramSocketImpl.cc (close): New function.Tom Tromey2-2/+10
* java/net/natPlainDatagramSocketImpl.cc (close): New function. * java/net/natPlainSocketImpl.cc (close): Indentation fix. From-SVN: r51563
2002-03-28* java/net/PlainDatagramSocketImpl.javaJeff Sturm4-31/+54
(close): Use native implementation. (finalize): New method. * java/net/PlainSocketImpl.java (finalize): New method. * java/net/natPlainDatagramSocketImpl.cc (java/io/FileDescriptor.h): Don't include. (close): Implement method here. (create): Don't assign fd. * java/net/natPlainSocketImpl.cc (java/io/FileDescriptor.h): Don't include. (create): Don't assign fd. (accept): Likewise. (close): Synchronize. From-SVN: r51492
2002-03-25Component.java (processEvent): Check ComponentEvent after KeyEvent.Tom Tromey1-2/+2
* java/awt/Component.java (processEvent): Check ComponentEvent after KeyEvent. From-SVN: r51301
2002-03-25Based on patch from Intel's ORP team:Bryce McKinlay1-7/+12
* java/io/PushbackInputStream.java (available): Calculate correct number of bytes in buffer. (read): Remove redundant bound check. Return bytes from both the buffer and the stream. From-SVN: r51296
2002-03-25FileInputStream.java (skip): Call fd.getFilePointer() and calculate correct ↵Bryce McKinlay1-1/+3
number of bytes skipped. * java/io/FileInputStream.java (skip): Call fd.getFilePointer() and calculate correct number of bytes skipped. From-SVN: r51293
2002-03-25* java/io/PushbackReader.java: Reformat.Bryce McKinlay1-396/+336
From-SVN: r51291
2002-03-24TextComponent.java (TextComponent): Editable by default.Tom Tromey1-0/+1
* java/awt/TextComponent.java (TextComponent): Editable by default. From-SVN: r51278
2002-03-24MenuItem.java (eventMask): No longer private.Tom Tromey9-5/+94
* java/awt/MenuItem.java (eventMask): No longer private. * java/awt/Button.java (dispatchEventImpl): Only dispatch to superclass if we didn't handle event. * java/awt/Checkbox.java (dispatchEventImpl): New method. * java/awt/CheckboxMenuItem.java (dispatchEventImpl): New method. * java/awt/Choice.java (dispatchEventImpl): New method. * java/awt/List.java (dispatchEventImpl): New method. * java/awt/Scrollbar.java (dispatchEventImpl): New method. * java/awt/TextComponent.java (dispatchEventImpl): New method. * java/awt/TextField.java (dispatchEventImpl): New method. From-SVN: r51277
2002-03-24[multiple changes]Mark Wielaard3-426/+546
2002-03-24 Eric Blake <ebb9@email.byu.edu> * java/beans/IntrospectionException.java: Update to 1.4. * java/beans/PropertyVetoException.java: Ditto. 2002-03-24 Eric Blake <ebb9@email.byu.edu> * gnu/java/beans/BeanInfoEmbryo.java (hasMethod): Use Arrays.equals instead of ArrayHelper.equalsArray. 2002-03-24 C. Brian Jones <cbj@gnu.org> * java/beans/Introspector.java: added new static final fields introduced in 1.2, lots of other updates remain to be done 2002-03-24 C. Brian Jones <cbj@gnu.org> * java/beans/Introspector.java: reformatting 2002-03-24 C. Brian Jones <cbj@gnu.org> * java/beans/Introspector.java: default beanInfoSearchPath will not include sun.beans.infos given we provide no such package and the API doesn't really require it; gnu.java.beans.info is the default. 2002-03-24 Mark Wielaard <mark@klomp.org> Thanks to Orp developers * gnu/java/beans/editors/NativeBooleanEditor.java (setAsText(String)): switch TRUE and FALSE return values. From-SVN: r51273
2002-03-23re PR libgcj/6045 (GregorianCalendar: getMinimum() and getMaximum() ↵Michael Smith1-3/+3
incorrect for month) 2002-03-23 Michael Smith <msmith@spinnakernet.com> * java/util/GregorianCalendar.java (minimums, maximums): Correct MONTH entry. Fixes PR libgcj/6045. From-SVN: r51232
2002-03-23* java/nat/natPlainSocketImpl.cc (write): Abort loop on error.Jeff Sturm1-0/+2
From-SVN: r51230
2002-03-18natSystem.cc (init_properties): Update VM version properties.Bryce McKinlay1-6/+16
* java/lang/natSystem.cc (init_properties): Update VM version properties. * configure.in: Set GCJVERSION. * acconfig.h: Add GCJVERSION. * configure: Rebuilt. * include/config.h.in: Rebuilt. From-SVN: r50944
2002-03-17Add arm thumb supportAnthony Green1-3/+5
From-SVN: r50920
2002-03-11posix.h: Add multiple include header protection.Bryce McKinlay1-1/+0
* include/posix.h: Add multiple include header protection. * java/net/natPlainSocketImpl.cc: Don't #include <posix.h>. From-SVN: r50559
2002-03-11natPlainSocketImpl.cc: Added #include <platform.h>.Adam Megacz1-1/+1
2002-03-10 Adam Megacz <adam@xwt.org> * java/net/natPlainSocketImpl.cc: Added #include <platform.h>. From-SVN: r50556
2002-03-10GridLayout.java (layoutContainer): Handle case where there are no items in ↵Tom Tromey1-0/+6
container. * java/awt/GridLayout.java (layoutContainer): Handle case where there are no items in container. From-SVN: r50539
2002-03-10Win32Process.java: Added comment.Tom Tromey4-2/+18
* java/lang/Win32Process.java: Added comment. * include/posix.h (_Jv_platform_close_on_exec): New function. Include fcntl.h. * include/win32.h (_Jv_platform_close_on_exec): New function. * java/net/natPlainSocketImpl.cc (create): Set close-on-exec flag. (accept): Likewise. * java/net/natPlainDatagramSocketImpl.cc (create): Set close-on-exec flag. * java/io/natFileDescriptorPosix.cc (open): Set close-on-exec flag. From-SVN: r50536
2002-03-10ImageMediaEntry: Removed.Bryce McKinlay2-203/+0
* java/awt/ImageMediaEntry: Removed. * java/awt/MediaEntry: Removed. From-SVN: r50524
2002-03-10Hashtable synchronization for PowerPC.Bryce McKinlay1-123/+1
libjava: Hashtable synchronization for PowerPC. * configure.in: Define SLOW_PTHREAD_SELF if configure.host set slow_pthread_self. Set up symlink for sysdeps directory. * configure: Rebuild. * configure.host: Document more shell variables. Set sysdeps_dir for most platforms. Set slow_pthread_self for i686. Set enable_hash_synchronization_default and slow_pthread_self for PowerPC. * posix-threads.cc (_Jv_ThreadSelf_out_of_line): Use release_set so that memory barrier is emitted where required. * prims.cc: 64-bit align static primitive class instances. * include/posix-threads.h (_Jv_ThreadSelf for SLOW_PTHREAD_SELF): Add read_barrier() to enforce ordering of reads. * sysdep/powerpc/locks.h: New file. Implementation of synchronization primitives for PowerPC. * sysdep/i386/locks.h: New file. Synchronization primitives for i386 moved from natObject.cc. * sysdep/alpha/locks.h: Likewise. * sysdep/ia64/locks.h: Likewise. * sysdep/generic/locks.h: Likewise. * java/lang/natObject.cc: Move thread synchronization primitives to system-dependent headers. gcc/java: * decl.c (java_init_decl_processing): Make sure class_type_node alignment is not less than 64 bits if hash synchronization isenabled. boehm-gc: * include/gc_priv.h: Define ALIGN_DOUBLE on 32 bit targets if GCJ support is enabled, for hash synchronization. From-SVN: r50523
2002-03-10natFileDescriptorWin32.cc (read): Return -1 if zero bytes read and no ↵Adam Megacz1-0/+1
failure code returned. 2002-03-09 Adam Megacz <adam@xwt.org> * java/io/natFileDescriptorWin32.cc (read): Return -1 if zero bytes read and no failure code returned. From-SVN: r50519
2002-03-09Win32Process.java (ConcreteProcess): Now throws an IOException so that ↵Adam Megacz1-1/+1
Throwable.printStackTrace fails correctly. 2002-03-09 Adam Megacz <adam@xwt.org> * java/lang/Win32Process.java (ConcreteProcess): Now throws an IOException so that Throwable.printStackTrace fails correctly. From-SVN: r50488
2002-03-09natPlainSocketImpl.cc (read, [...]): Formatting fixed.Adam Megacz1-4/+7
2002-03-08 Adam Megacz <adam@xwt.org> * java/net/natPlainSocketImpl.cc (read, write, close): Formatting fixed. From-SVN: r50481
2002-03-08natPlainSocketImpl.cc: Changed USE_WINSOCK to WIN32, and added thunks for ↵Adam Megacz1-3/+37
read(), write(), and close(). 2002-03-07 Adam Megacz <adam@xwt.org> * java/net/natPlainSocketImpl.cc: Changed USE_WINSOCK to WIN32, and added thunks for read(), write(), and close(). * java/net/natPlainSocketImpl.cc (accept, read, read): Disabled timeouts on WIN32 pending discussion. From-SVN: r50418
2002-03-08win32.cc (_Jv_platform_gettimeofday): Now takes no args, returns jlong.Adam Megacz1-3/+1
2002-03-07 Adam Megacz <adam@xwt.org> * win32.cc (_Jv_platform_gettimeofday): Now takes no args, returns jlong. Added implementation * posix.cc (_Jv_platform_gettimeofday): Now takes no args, returns jlong. * win32.h (_Jv_platform_gettimeofday): Now takes no args, returns jlong. * posix.h (_Jv_platform_gettimeofday): Now takes no args, returns jlong. * java/lang/natSystem.cc (currentTimeMillis): Now uses updated _Jv_platform_gettimeofday signature. From-SVN: r50416
2002-03-07natPlainSocketImpl.cc (_Jv_recv): Removed.Bryce McKinlay1-10/+1
* java/net/natPlainSocketImpl.cc (_Jv_recv): Removed. (read): Call recv() directly, not _Jv_recv(). From-SVN: r50391
2002-03-06natFileDescriptorEcos.cc (init): Don't use GetStdHandle.Tom Tromey2-10/+10
* java/io/natFileDescriptorEcos.cc (init): Don't use GetStdHandle. * java/io/natFileDescriptorPosix.cc (valid): Don't call stat if FD is negative. (init): Don't use GetStdHandle. From-SVN: r50383