aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
AgeCommit message (Collapse)AuthorFilesLines
2002-06-13natString.cc (init): Handle case where DONT_COPY is true and OFFSET!=0.Tom Tromey9-1548/+1684
* java/lang/natString.cc (init): Handle case where DONT_COPY is true and OFFSET!=0. * java/lang/String.java (String(char[],int,int,boolean): New constructor. * java/lang/Long.java: Imported new version from Classpath. * java/lang/Number.java: Likewise. * java/lang/Integer.java: Likewise. * java/lang/Long.java: Likewise. * java/lang/Float.java: Likewise. * java/lang/Boolean.java: Likewise. * java/lang/Double.java: Likewise. * java/lang/Void.java: Likewise. From-SVN: r54595
2002-06-12re PR libgcj/6652 (new java.io.File("").getCanonicalFile() throws exception)Tom Tromey1-1/+8
* java/io/natFilePosix.cc (getCanonicalPath): Treat "" like ".". Fixes PR libgcj/6652. From-SVN: r54558
2002-06-11Class.h (Class::desiredAssertionStatus): Declare.Tom Tromey5-7/+399
* java/lang/Class.h (Class::desiredAssertionStatus): Declare. (Class::getPackagePortion): Likewise. * java/lang/Class.java (desiredAssertionStatus): New method from Classpath. (getPackagePortion): Likewise. * java/lang/VMClassLoader.java (defaultAssertionStatus, packageAssertionStatus, classAssertionStatus): New methods from Classpath. * java/lang/ClassLoader.java (defaultAssertionStatus, systemPackageAssertionStatus, packageAssertionStatus, systemClassAssertionStatus, classAssertionStatus): New fields from Classpath. (setDefaultAssertionStatus, setPackageAssertionStatus, setClassAssertionStatus, clearAssertionStatus): New methods from Classpath. * Makefile.in: Rebuilt. * Makefile.am (core_java_source_files): Added AssertionError.java. * java/lang/AssertionError.java: New from Classpath. From-SVN: r54517
2002-06-06natFileDescriptorWin32.cc (open): Disable Win32 file locking, just like the ↵Adam Megacz1-4/+1
Sun JVM does. 2002-06-06 Adam Megacz <adam@xwt.org> * java/io/natFileDescriptorWin32.cc (open): Disable Win32 file locking, just like the Sun JVM does. From-SVN: r54322
2002-06-04* java/util/natTimeZone.cc: Include <stdio.h>.Tom Tromey1-0/+2
From-SVN: r54258
2002-05-24natThrowable.cc (fillInStackTrace): Use "stackTraceBytes", not "stackTrace".Bryce McKinlay1-5/+5
* java/lang/natThrowable.cc (fillInStackTrace): Use "stackTraceBytes", not "stackTrace". From-SVN: r53857
2002-05-24Merge JDK 1.4 java.security changes from classpath.Bryce McKinlay55-1323/+2590
* java/security/AccessControlException.java: Merge from Classpath. * java/security/AccessController.java: Likewise. * java/security/AllPermission.java: Likewise. * java/security/BasicPermission.java: Likewise. * java/security/Certificate.java: Likewise. * java/security/CodeSource.java: Likewise. * java/security/DigestException.java: Likewise. * java/security/DigestOutputStream.java: Likewise. * java/security/DomainCombiner.java: Likewise. * java/security/GeneralSecurityException.java: Likewise. * java/security/Guard.java: Likewise. * java/security/GuardedObject.java: Likewise. * java/security/InvalidAlgorithmParameterException.java: Likewise. * java/security/InvalidKeyException.java: Likewise. * java/security/InvalidParameterException.java: Likewise. * java/security/Key.java: Likewise. * java/security/KeyException.java: Likewise. * java/security/KeyManagementException.java: Likewise. * java/security/KeyStoreException.java: Likewise. * java/security/MessageDigest.java: Likewise. * java/security/NoSuchAlgorithmException.java: Likewise. * java/security/NoSuchProviderException.java: Likewise. * java/security/Permission.java: Likewise. * java/security/PermissionCollection.java: Likewise. * java/security/Permissions.java: Likewise. * java/security/Policy.java: Likewise. * java/security/Principal.java: Likewise. * java/security/PrivateKey.java: Likewise. * java/security/PrivilegedAction.java: Likewise. * java/security/PrivilegedActionException.java: Likewise. * java/security/PrivilegedExceptionAction.java: Likewise. * java/security/ProtectionDomain.java: Likewise. * java/security/ProviderException.java: Likewise. * java/security/PublicKey.java: Likewise. * java/security/SecureClassLoader.java: Likewise. * java/security/SecurityPermission.java: Likewise. * java/security/SignatureException.java: Likewise. * java/security/UnrecoverableKeyException.java: Likewise. * java/security/UnresolvedPermission.java: Likewise. * java/security/acl/AclNotFoundException.java: Likewise. * java/security/acl/LastOwnerException.java: Likewise. * java/security/acl/NotOwnerException.java: Likewise. * java/security/cert/CRLException.java: Likewise. * java/security/cert/CertificateEncodingException.java: Likewise. * java/security/cert/CertificateException.java: Likewise. * java/security/cert/CertificateExpiredException.java: Likewise. * java/security/cert/CertificateFactory.java: Likewise. * java/security/cert/CertificateNotYetValidException.java: Likewise. * java/security/cert/CertificateParsingException.java: Likewise. * java/security/spec/InvalidKeySpecException.java: Likewise. * java/security/spec/InvalidParameterSpecException.java: Likewise. * java/security/cert/CertPath.java: New file. * java/security/cert/CertPathBuilderException.java: New file. * java/security/cert/CertPathValidatorException.java: New file. * java/security/cert/CertStoreException.java: New file. * Makefile.am: Add new CertPath classes. * Makefile.in: Rebuilt. * gnu/java/util/EmptyEnumeration: New file from classpath. From-SVN: r53837
2002-05-24Merge JDK 1.4 exception chaining support from classpath.Bryce McKinlay3-60/+695
* java/lang/Throwable.java: Merge 1.4 support from classpath. (stackTraceBytes): Rename from stackTrace. * java/lang/Exception.java: Merge from classpath. * java/lang/StackTraceElement: New file from classpath. * gcj/javaprims.h: Rebuild CNI namespace declarations. * Makefile.am: Add StackTraceElement. * Makefile.in: Rebuilt. From-SVN: r53836
2002-05-14natRuntime.cc: Don't include sys/time.h and time.h.Tom Tromey2-11/+15
* java/lang/natRuntime.cc: Don't include sys/time.h and time.h. * java/util/natTimeZone.cc: Include sys/time.h and time.h here. Include platform.h. From-SVN: r53443
2002-05-13re PR libgcj/6389 (System.getProperty("") should always throw an ↵Tom Tromey6-674/+1780
IllegalArgumentException) Fixes PR libgcj/6389: * Makefile.in: Rebuilt. * Makefile.am (nat_source_files): Added natTimeZone.cc. * java/util/natTimeZone.cc: New file. * java/util/TimeZone.java (getDefaultTimeZoneId): New method. * java/lang/System.java: Merged with Classpath. * java/lang/Runtime.java: Merged with Classpath. * java/lang/natSystem.cc (setErr0): Renamed from setErr; don't run security check. (setIn0): Renamed from setIn; don't run security check. (setOut0): Renamed from setOut; don't run security check. (file_encoding, getpwuid_adaptor, getSystemTimeZone, init_properties): Moved to natRuntime.cc. Moved many includes to natRuntime.cc. (isWordsBigEndian): New method. * java/lang/natRuntime.cc: Include Long.h, also other includes previously in natSystem.cc. (maxMemory): New function. (exitInternal): Renamed from `_exit'. (exit): Removed. (init): Don't set finalize_on_exit. (exitInternal): Use `finalizeOnExit'. (file_encoding, getpwuid_adaptor): New functions from natSystem.cc. (insertSystemProperties): New method, renamed from System::init_properties. Don't set user.timezone. (_load): Don't call checkLink. (execInternal): New method. (availableProcessors): Likewise. (nativeGetLibname): Likewise. From-SVN: r53429
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