aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
AgeCommit message (Collapse)AuthorFilesLines
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
2002-03-06FileDescriptor.java: Initialize in/out/err in init().Adam Megacz4-4/+37
2002-03-06 Adam Megacz <adam@xwt.org> * java/io/FileDescriptor.java: Initialize in/out/err in init(). * java/io/natFileDescriptorWin32.cc (init()): Added function. * java/io/natFileDescriptorPosix.cc (init()): Added function. * java/io/natFileDescriptorEcos.cc (init()): Added function. From-SVN: r50378
2002-03-06unicode-decomp.pl: Move from chartables.pl...Eric Blake2-621/+2090
2002-03-04 Eric Blake <ebb9@email.byu.edu> * scripts/unicode-decomp.pl: Move from chartables.pl, and remove the code for generating include/java-chartables.h. * scripts/unicode-blocks.pl: Move from scripts/blocks.pl, and merge with Classpath. * scripts/unicode-muncher.pl: Copy from Classpath. * scritps/MakeCharTables.java: New file. * gnu/gcj/convert/Blocks-3.txt: New file. * gnu/gcj/convert/UnicodeData-3.0.0.txt: New file. * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html: New file. * gnu/java/lang/CharData.java: Copy from Classpath. * Makefile.am (ordinary_java_source_files): Add gnu/java/lang/CharData.java. * configure.in: Remove --enable-fast-character option. * java/lang/Character.java: Merge algorithms and Javadoc with Classpath. * java/lang/natCharacter.cc: Implement Unicode lookup table more efficiently. * include/java-chardecomp.h: Regenerate. * include/java-chartables.h: Regenerate. From-SVN: r50368
2002-03-06MediaTracker.java: Implemented.Bryce McKinlay1-2/+343
* java/awt/MediaTracker.java: Implemented. * Makefile.am: Add MediaTracker. * Makefile.in: Rebuilt. From-SVN: r50349
2002-03-06natPosixProcess.cc (fail): Removed.Tom Tromey1-126/+153
* java/lang/natPosixProcess.cc (fail): Removed. (startProcess): Simplified error-handling. Preserve LD_LIBRARY_PATH across exec. From-SVN: r50342
2002-03-03* java/util/Timer (TaskQueue.stop): set elements to zero.Mark Wielaard1-0/+1
From-SVN: r50254
2002-03-01Add pointer support to the reflection code.Anthony Green1-29/+36
From-SVN: r50180
2002-02-28natInetAddress.cc: Changed USE_WINSOCK to WIN32, added '#undef STRICT'.Adam Megacz1-3/+4
2002-02-27 Adam Megacz <adam@xwt.org> * java/net/natInetAddress.cc: Changed USE_WINSOCK to WIN32, added '#undef STRICT'. From-SVN: r50120
2002-02-27natSystem.cc (init_properties): Use __VERSION__.Tom Tromey1-2/+2
* java/lang/natSystem.cc (init_properties): Use __VERSION__. * gij.cc (version): Use __VERSION__. * include/config.h.in: Rebuilt. * acconfig.h (GCJVERSION): Removed. * configure: Rebuilt. * configure.in (GCJVERSION): Removed. From-SVN: r50088
2002-02-27natPosixProcess.cc (startProcess): Use FD_CLOEXEC, not `1'.Tom Tromey1-3/+3
* java/lang/natPosixProcess.cc (startProcess): Use FD_CLOEXEC, not `1'. From-SVN: r50081
2002-02-25natPlainDatagramSocketImpl.cc: whops; removed 'make' typo.Adam Megacz1-1/+1
2002-02-24 Adam Megacz <adam@xwt.org> * java/net/natPlainDatagramSocketImpl.cc: whops; removed 'make' typo. Sorry. From-SVN: r50019
2002-02-25natPlainDatagramSocketImpl.cc: Updated #includes for Win32...Adam Megacz1-6/+8
2002-02-24 Adam Megacz <adam@xwt.org> * java/net/natPlainDatagramSocketImpl.cc: Updated #includes for Win32, changed #ifdefs to check WIN32 instead of the (now-obsolete) USE_WINSOCK, and removed support for socket timeouts on Win32 pending further discussion. From-SVN: r50017
2002-02-24Win32Process.java: Created a dummy class to allow build process to run to ↵Adam Megacz1-0/+63
completion. 2002-02-24 Adam Megacz <adam@xwt.org> * java/lang/Win32Process.java: Created a dummy class to allow build process to run to completion. From-SVN: r50013
2002-02-24natMethod.cc (_Jv_CallAnyMethodA): Define ffi_result union for ffi_call result.Jeff Sturm1-1/+42
* java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Define ffi_result union for ffi_call result. Cast ffi_result members to jvalue. From-SVN: r50007
2002-02-22URL.java (getPath): New JDK 1.3 method.Per Bothner2-19/+42
* java/net/URL.java (getPath): New JDK 1.3 method. * java/net/URLStreamHandler.java (parseURL): It is wrong to prepend '/' to the file part of a relative url. * java/net/URLStreamHandler.java (parseURL): Minor optizations - append '/' rather than "/". * java/net/URLStreamHandler.java (parseURL): Don't canonicalize "xx/.." or "./" URLs - JDK doesn't. We probably should canonicalize for a context-relative url, though. * java/net/URL.java (sameFile): Delegate to URLStreamHandler. * java/net/URLStreamHandler.java (canonicalizeFilename): New helper. (sameFile): New method. Uses canonicalizeFilename. From-SVN: r49980
2002-02-22natSystem.cc (init_properties): Include the `Inc.' in java.vendor and ↵Tom Tromey1-2/+2
java.vm.vendor. * java/lang/natSystem.cc (init_properties): Include the `Inc.' in java.vendor and java.vm.vendor. * gnu/java/rmi/rmic/RMIC.java (parseOptions): Only print most recent copyright date. * gnu/gcj/convert/Convert.java (version): Print `Inc'. * gij.cc (version): Print `Inc'. From-SVN: r49975
2002-02-18natPlainDatagramSocketImpl.cc (bind): Call setsockopt to enable SO_BROADCAST.Bryce McKinlay1-1/+5
2002-02-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz> * java/net/natPlainDatagramSocketImpl.cc (bind): Call setsockopt to enable SO_BROADCAST. From-SVN: r49835
2002-02-15Makefile.in: Rebuilt with Eric's change below.Bryce McKinlay1-122/+1
* Makefile.in: Rebuilt with Eric's change below. * java/lang/natMath.cc (abs(jdouble), abs(jfloat), round(jfloat), round(jdouble), min(jfloat), max(jfloat), min(jdouble), min(jfloat)): Removed functions which are now implemented in Math.java. From-SVN: r49782
2002-02-15javaprims.h (java::lang): Add java::lang::StrictMath.Eric Blake2-82/+2440
2002-02-14 Eric Blake <ebb9@email.byu.edu> * gcj/javaprims.h (java::lang): Add java::lang::StrictMath. * Makefile.am (core_java_source_files): Add java/lang/StrictMath.java. * java/lang/Math.java: Merge with Classpath. * java/lang/StrictMath.java: New file - merge with Classpath. From-SVN: r49781
2002-02-14[multiple changes]Mark Wielaard7-120/+211
2002-02-14 Mark Wielaard <mark@klomp.org> * java/math/BigInteger.java: import gnu.java.math.MPN not the whole package as a workaround for gcj 3.0.x 2002-02-14 Mark Wielaard <mark@klomp.org> * java/security/BasicPermission.java: extends with fully qualified classname as workaround for gcj 3.0.4. 2002-02-14 Eric Blake <ebb9@email.byu.edu> * java/net/DatagramSocketImpl.java (setOption, getOption): Work around gcj bug of wrong emitted qualifier for inherited method. * java/net/SocketImpl.java (setOption, getOption): Ditto. * java/util/WeakHashMap.java (WeakEntrySet): Add non-private constructor to reduce amount of emitted bytecode. While this happens to work around a jikes 1.15 bug, it is still a useful patch even for correct compilers. * java/rmi/server/RMIClassLoader.java (MyClassLoader): Ditto. * gnu/java/rmi/server/UnicastRemoteCall.java (DummyObjectOutputStream, DummyObjectInputStream): Ditto. 2002-02-14 Eric Blake <ebb9@email.byu.edu> * java/net/DatagramSocketImpl.java: Reformat (no code changes). * java/net/SocketImpl.java: Ditto. * java/rmi/server/RMIClassLoader.java: Ditto. * gnu/java/rmi/server/UnicastRemoteCall.java: Ditto. 2002-02-14 Mark Wielaard <mark@klomp.org> Thanks to Takashi Okamoto * java/util/Arrays.java (ArrayList.indexOf()): this.equals(). * java/util/Arrays.java (ArrayList.lastIndexOf()): Likewise. * java/util/WeakHashMap.java (WeakEntry.getEntry()): this.get(). From-SVN: r49778
2002-02-12natFilePosix.cc: Copied this from natFile.cc.Adam Megacz1-0/+0
2002-02-12 Adam Megacz <adam@xwt.org> * java/io/natFilePosix.cc: Copied this from natFile.cc. * java/io/natFile.cc: Removed from repository. * configure.in: Added AC_LINK_FILES for natFile${PLATFORM}. From-SVN: r49700
2002-02-12natFileWin32.cc, [...]: Added #undef STRICT to make windows.h and ↵Adam Megacz2-0/+2
java/lang/reflect/Modifier.h cooperate. 2002-02-11 Adam Megacz <adam@xwt.org> * java/io/natFileWin32.cc, java/io/natFileDescriptorWin32.cc: Added #undef STRICT to make windows.h and java/lang/reflect/Modifier.h cooperate. From-SVN: r49692
2002-02-12natFileWin32.cc: Created a placeholder class with lots of FIXMEs.Adam Megacz1-63/+48
2002-02-11 Adam Megacz <adam@xwt.org> * java/io/natFileWin32.cc: Created a placeholder class with lots of FIXMEs. From-SVN: r49691
2002-02-08natFile.cc (_access): Use __builtin_alloca.Tom Tromey1-12/+13
* java/io/natFile.cc (_access): Use __builtin_alloca. (_stat): Likewise. (attr): Likewise. (getCanonicalPath): Likewise. (performList): Likewise. (performMkdir): Likewise. (performSetReadOnly): Likewise. (performRenameTo): Likewise. (performSetLastModified): Likewise. (performCreate): Likewise. (performDelete): Likewise. From-SVN: r49607
2002-02-07natThrowable.cc: Updated copyright.Tom Tromey3-3/+3
* java/lang/natThrowable.cc: Updated copyright. * java/io/natFileWin32.cc: Updated copyright. * java/io/natFileDescriptorWin32.cc: Updated copyright. * win32-threads.cc: Updated copyright. * name-finder.cc: Updated copyright. * include/name-finder.h: Updated copyright. From-SVN: r49586
2002-02-07natFile.cc (_access): Don't stack-allocate buffer.Tom Tromey1-23/+19
* java/io/natFile.cc (_access): Don't stack-allocate buffer. Size buffer based on real size of string. (_stat): Likewise. (attr): Likewise. (getCanonicalPath): Likewise. (performList): Likewise. (performMkdir): Likewise. (performSetReadOnly): Likewise. (unixroot): Removed. (performRenameTo): Likewise. (performSetLastModified): Likewise. (performCreate): Likewise. (performDelete): Likewise. (performListRoots): Always return new array. From-SVN: r49584
2002-02-07prims.cc (_Jv_CreateJavaVM): Call _Jv_platform_initialize.Tom Tromey1-1/+1
* prims.cc (_Jv_CreateJavaVM): Call _Jv_platform_initialize. * win32.cc (win32_exception_handler): Now static. * include/win32.h (_Jv_platform_initialize): Declare. (win32_exception_handler): Don't declare. * java/lang/natSystem.cc (currentTimeMillis): Use _Jv_platform_gettimeofday. * posix.cc (_Jv_platform_gettimeofday): Renamed. (_Jv_select): Use new name. (_Jv_platform_initialize): New function. * include/posix.h (_Jv_platform_gettimeofday): Renamed from _Jv_gettimeofday. (_Jv_platform_initialize): Declare. From-SVN: r49583
2002-02-07embedded updatesAnthony Green4-4/+57
From-SVN: r49562
2002-02-06configure.in: Set up PLATFORMOBJS not PLATFORM_SPECIFIC_SOURCES.Bryce McKinlay1-1/+1
* configure.in: Set up PLATFORMOBJS not PLATFORM_SPECIFIC_SOURCES. Symlink PLATFORMH to platform.h. * Makefile.am (libgcj_la_DEPENDENCIES, libgcj_la_LIBADD): Add PLATFORMOBJS. * java/lang/natSystem.cc: #include platform.h not posix.h. * Makefile.in: Rebuilt with libgcj automake. * configure: Rebuilt. From-SVN: r49534
2002-02-02* java/io/natFile.cc: Removed old "FIXME" comments.Tom Tromey1-13/+1
From-SVN: r49434
2002-02-02natPosixProcess.cc (myclose): New function.Tom Tromey1-14/+27
* java/lang/natPosixProcess.cc (myclose): New function. (fail): Use it. (startProcess): Likewise. From-SVN: r49433
2002-02-02configure.in: Added support for mingw.Adam Megacz2-0/+0
2002-02-01 Adam Megacz <adam@xwt.org> * configure.in: Added support for mingw. * java/lang/Win32Process.java: Created as empty file. * java/lang/natWin32Process.cc: Created as empty file. From-SVN: r49425
2002-01-30natPlainSocketImpl.cc (_Jv_recv): Added template parameter for `recv' return ↵Tom Tromey1-2/+3
type. * java/net/natPlainSocketImpl.cc (_Jv_recv): Added template parameter for `recv' return type. From-SVN: r49345
2002-01-30List.java (addNotify): Correctly check to see if peer does not exist.Tom Tromey1-1/+1
* java/awt/List.java (addNotify): Correctly check to see if peer does not exist. From-SVN: r49335