aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2000-03-27jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception set, throw it.Tom Tromey2-3/+9
* jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception set, throw it. (call): Don't throw exception here. From-SVN: r32770
2000-03-27test_long.out: New file.Tom Tromey3-0/+19
* libjava.lang/test_long.out: New file. * libjava.lang/test_long.java: New file. From-SVN: r32769
2000-03-26[multiple changes]Tom Tromey8-31/+122
2000-03-26 Tom Tromey <tromey@cygnus.com> * java/lang/mprec.h: Use SIZEOF_VOID_P. * interpret.cc: Use SIZEOF_VOID_P. * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P. (_Jv_loadLong): Likewise. (_Jv_storeDouble): Likewise. * configure: Rebuilt. * configure.in: Check size of void*. * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE. 2000-03-26 Hans Boehm <boehm@acm.org> * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong, _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit machine. * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN appropriately on IA64. * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine. * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit case. * resolve.cc (FFI_PREP_RAW_CLOSURE): New define. (FFI_RAW_SIZE): Likewise. (_Jv_InterpMethod::ncode): Use them. * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL, STORED): Define differently on a 64 bit machine. (continue1): Use ffi_java_raw_call when appropriate. From-SVN: r32754
2000-03-26* libjava.lang/Array_1.xfail: Removed.Tom Tromey2-1/+4
From-SVN: r32753
2000-03-24BigInteger.java (divide): Handle the special case when dividing by 1 and the ↵Warren Levy2-2/+17
high bit of the dividend is set. * java/math/BigInteger.java(divide): Handle the special case when dividing by 1 and the high bit of the dividend is set. (setShiftRight): Handle case when count == 0. From-SVN: r32724
2000-03-24Font.java (isBold): Fix syntax error.Warren Levy6-6/+16
* java/awt/Font.java(isBold): Fix syntax error. (isItalic): ditto. * java/awt/Frame.java(postEvent): ditto. * java/awt/Menu.java(postEvent): ditto. * java/awt/MenuBar.java(postEvent): ditto. * java/awt/Toolkit.java(init): Included a stub. From-SVN: r32723
2000-03-23Thread_Wait.java: New file.Bryce McKinlay17-0/+683
2000-03-23 Bryce McKinlay <bryce@albatross.co.nz> * libjava.lang/Thread_Wait.java: New file. * libjava.lang/Thread_Sleep.java: New file. * libjava.lang/Thread_Monitor.java: New file. * libjava.lang/Thread_Wait.out: New file. * libjava.lang/Thread_Sleep.out: New file. * libjava.lang/Thread_Monitor.out: New file. * libjava.lang/Thread_Interrupt.java: New file. * libjava.lang/Thread_Wait_2.java: New file. * libjava.lang/Thread_Wait_2.out: New file. * libjava.lang/Thread_Wait_Interrupt.java: New file. * libjava.lang/Thread_Wait_Interrupt.out: New file. * libjava.lang/Thread_Interrupt.out: New file. * libjava.lang/Thread_Join.java: New file. * libjava.lang/Thread_Join.out: New file. * libjava.lang/Thread_Alive.java: New file. * libjava.lang/Thread_Alive.out: New file. From-SVN: r32706
2000-03-22iface.java: New file.Tom Tromey22-0/+165
* libjava.compile/iface.java: New file. * libjava.compile/static_3.java: New file. * libjava.compile/static_2.java: New file. * libjava.compile/static_1.xfail: New file. * libjava.compile/static_1.java: New file. * libjava.compile/redef6.xfail: New file. * libjava.compile/redef6.java: New file. * libjava.compile/redef5.xfail: New file. * libjava.compile/redef5.java: New file. * libjava.compile/redef4.xfail: New file. * libjava.compile/redef4.java: New file. * libjava.compile/redef3.xfail: New file. * libjava.compile/redef3.java: New file. * libjava.compile/redef2.xfail: New file. * libjava.compile/redef2.java: New file. * libjava.compile/redef1.xfail: New file. * libjava.compile/redef1.java: New file. * libjava.compile/not_a_redef.java: New file. * libjava.compile/inner_1.java: New file. * libjava.compile/static_init.xfail: New file. * libjava.compile/static_init.java: New file. From-SVN: r32688
2000-03-21Event.java: Add all the event type constants.Bryce McKinlay2-2/+142
2000-03-21 Bryce McKinlay <bryce@albatross.co.nz> * java/awt/Event.java: Add all the event type constants. (Event): Implemented constructors. (controlDown): Implemented. (metaDown): Implemented. (paramString): Stubbed. (shiftDown): Implemented. (toString): Implemented. (translate): Implemented. From-SVN: r32676
2000-03-21* java/lang/natClass.cc (isInstance): Use JV_CLASS, not getClass().Bryce McKinlay2-2/+2
From-SVN: r32665
2000-03-21natClass.cc (isInstance): Use _Jv_IsAssignableFrom(), not ↵Bryce McKinlay2-1/+3
Class.isAssignableFrom(). * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(), not Class.isAssignableFrom(). From-SVN: r32664
2000-03-21natClass.cc (isInstance): Initialize `this'.Bryce McKinlay2-1/+13
2000-03-21 Bryce McKinlay <bryce@albatross.co.nz> * java/lang/natClass.cc (isInstance): Initialize `this'. (isAssignableFrom): Initialize `this' and `klass'. (_Jv_IsAssignableFrom): If an interface has no idt, it is not implemented by any loaded class, so return false. From-SVN: r32663
2000-03-21Test case for PR libgcj/179:Bryce McKinlay3-0/+75
2000-03-21 Bryce McKinlay <bryce@albatross.co.nz> Test case for PR libgcj/179: * libjava.lang/pr179.java: New file. * libjava.lang/pr179.out: New file. From-SVN: r32662
2000-03-19Color.java: Specified java.io for Serializable.Warren Levy3-1/+7
* java/awt/Color.java: Specified java.io for Serializable. * java/awt/Toolkit.java: Imported java.net.URL. From-SVN: r32639
2000-03-19* java/awt/Color.java: Rewrote to be more memory efficient (& compile).Warren Levy2-25/+55
From-SVN: r32634
2000-03-19* libjava.lang/pr109.java: Added `println' at end.Tom Tromey2-0/+8
From-SVN: r32627
2000-03-17Color.java: New file.Warren Levy19-10/+533
* java/awt/Color.java: New file. * java/awt/Graphics.java: New file. * java/awt/Image.java: New file. * java/awt/Paint.java: New file. * java/awt/PaintContext.java: New file. * java/awt/Transparency.java: New file. * java/util/Collection.java: New file. * java/util/Comparator.java: New file. * java/util/Iterator.java: New file. * java/util/List.java: New file. * java/util/ListIterator.java: New file. * Makefile.am: Added above new files. * Makefile.in: Rebuilt. * java/awt/Font.java (PLAIN): New field. (BOLD): New field. (ITALIC): New field. (ROMAN_BASELINE): New field. (CENTER_BASELINE): New field. (HANGING_BASELINE): New field. (name): New field. (style): New field. (size): New field. (pointSize): New field. (Font): Implemented constructor. (isPlain): Implemented method. (isBold): Implemented method. (isItalic): Implemented method. (getName): Implemented method. (getStyle): Implemented method. (getSize): Implemented method. (getSize2D): Implemented method. (decode): Stubbed. * java/awt/Frame.java (getFont): Stubbed. (postEvent): Stubbed. (remove): Stubbed. * java/awt/Menu.java (postEvent): Stubbed. * java/awt/MenuBar.java (getFont): Stubbed. (postEvent): Stubbed. * java/awt/Toolkit.java (getImage): Added abstract method. From-SVN: r32598
2000-03-15[multiple changes]Tom Tromey11-2/+1031
2000-03-15 Tom Tromey <tromey@cygnus.com> * java/io/natFileDescriptorWin32.cc (winerr): Now static. * prims.cc (win32_exception_handler): Reformatted. * include/win32-threads.h (_Jv_HaveCondDestroy): New define. (_Jv_HaveMutexDestroy): Likewise. 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk> * java/io/natFileDescriptorWin32.cc: New file. * java/io/natFileWin32.cc: New file. * java/net/natInetAddress.cc: Added conditional inclusion of Windows / Winsock headers. * java/net/natPlainDatagramSocketImpl.cc: Added conditional inclusion of Windows / Winsock headers. * java/net/natPlainSocketImpl.cc: Added conditional inclusion of Windows / Winsock headers. * include/win32-signal.h: New file. * include/win32-threads.h: New file. * win32-threads.cc: New file. * exception.cc (win32_get_restart_frame): New function. * prims.cc (win32_exception_handler): New function. (main_init) Performs Winsock initialisation. (main_init) Installs exeception handler. From-SVN: r32567
2000-03-15* libjava.compile/pr176.java: New file, for PR gcj/176.Tom Tromey2-0/+19
From-SVN: r32561
2000-03-15* libjava.compile/PR140.xfail: New file.Bryce McKinlay2-0/+2
From-SVN: r32553
2000-03-15pr172.java: Correct classname to match file name.Bryce McKinlay3-8/+9
2000-03-15 Bryce McKinlay <bryce@albatross.co.nz> * libjava.compile/pr172.java: Correct classname to match file name. * libjava.compile/pr174.java: ditto. Remove superfluous main() method. From-SVN: r32552
2000-03-15* libjava.compile/PR140.java: New file, for PR gcj/140.Tom Tromey2-0/+15
From-SVN: r32551
2000-03-14jni.cc (mangled_name): Fixed assertion.Tom Tromey2-3/+11
* jni.cc (mangled_name): Fixed assertion. (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument; turned assert into actual failure. From-SVN: r32546
2000-03-14* libjava.compile/pr172.java: New file, for PR gcj/172.Tom Tromey2-0/+11
From-SVN: r32539
2000-03-14* libjava.compile/pr174.java: New file, for PR gcj/174.Tom Tromey2-0/+24
From-SVN: r32537
2000-03-10Key.java (serialVersionUID): Set to 0 for now.Warren Levy4-3/+11
* java/security/Key.java(serialVersionUID): Set to 0 for now. * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto. * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto. From-SVN: r32464
2000-03-10AlgorithmParameterGeneratorSpi.java: New file.Warren Levy38-52/+1512
* java/security/AlgorithmParameterGeneratorSpi.java: New file. * java/security/DigestException.java: New file. * java/security/GeneralSecurityException.java: New file. * java/security/InvalidAlgorithmParameterException.java: New file. * java/security/InvalidKeyException.java: New file. * java/security/InvalidParameterException.java: New file. * java/security/Key.java: New file. * java/security/KeyException.java: New file. * java/security/KeyPair.java: New file. * java/security/KeyPairGenerator.java: New file. * java/security/KeyPairGeneratorSpi.java: New file. * java/security/NoSuchProviderException.java: New file. * java/security/PrivateKey.java: New file. * java/security/Provider.java: New file. * java/security/PublicKey.java: New file. * java/security/SecureRandom.java: New file. * java/security/Security.java: New file. * java/security/Signature.java: New file. * java/security/SignatureException.java: New file. * java/security/interfaces/DSAKey.java: New file. * java/security/interfaces/DSAParams.java: New file. * java/security/interfaces/DSAPrivateKey.java: New file. * java/security/interfaces/DSAPublicKey.java: New file. * java/security/interfaces/RSAPrivateCrtKey.java: New file. * java/security/interfaces/RSAPrivateKey.java: New file. * java/security/interfaces/RSAPublicKey.java: New file. * java/security/spec/AlgorithmParameterSpec.java: New file. * java/security/spec/InvalidKeySpecException.java: New file. * java/security/spec/InvalidParameterSpecException.java: New file. * java/security/spec/KeySpec.java: New file. * java/security/spec/RSAPrivateCrtKeySpec.java: New file. * java/security/spec/RSAPrivateKeySpec.java: New file. * java/security/spec/RSAPublicKeySpec.java: New file. * Makefile.am: Added above java.security files. * Makefile.in: Rebuilt. * java/security/MessageDigest.java: Rewritten. * java/security/SecureClassLoader.java: Added JDK1.2 comment. From-SVN: r32461
2000-03-09Updated again.Bryce McKinlay1-1/+13
From-SVN: r32457
2000-03-09Updated README.Bryce McKinlay2-10/+10
From-SVN: r32456
2000-03-09natClassLoader.cc (_Jv_FindArrayClass): Call _Jv_PrepareConstantTimeTables.Bryce McKinlay3-2/+12
2000-03-09 Bryce McKinlay <bryce@albatross.co.nz> * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call _Jv_PrepareConstantTimeTables. * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array classes should have an IDT, so don't return if klass is an array class. From-SVN: r32445
2000-03-09natArray.cc (newInstance): Don't allow array of `void' to be created.Tom Tromey5-24/+68
* java/lang/reflect/natArray.cc (newInstance): Don't allow array of `void' to be created. From-SVN: r32443
2000-03-09* java/math/BigInteger.java(signum): Handle zero properly.Warren Levy2-1/+7
From-SVN: r32441
2000-03-08re GNATS gcj/162 (gcj does not initialize interfaces according to spec)Tom Tromey2-3/+8
* libjava.lang/PR162.java: Mention `PR162', not `Test', as class name. From-SVN: r32408
2000-03-07Test for PR gcj/163:Bryce McKinlay3-0/+15
2000-03-07 Bryce McKinlay <bryce@albatross.co.nz> Test for PR gcj/163: * libjava.lang/PR163.java: New file. * libjava.lang/PR163.xfail: New file. From-SVN: r32393
2000-03-07libjava.exp (test_libjava_from_javac): Removed hack for interfaces.Tom Tromey2-13/+23
* lib/libjava.exp (test_libjava_from_javac): Removed hack for interfaces. Fail if jv-scan reports a parse error. From-SVN: r32392
2000-03-07All files: Updated copyright information.Tom Tromey390-880/+750
* All files: Updated copyright information. * COPYING: New file. * COPYING.LIB: Removed. * LIBGCJ_LICENSE: We now use GPL + special exception. From-SVN: r32387
2000-03-07Test for PR gcj/162:Tom Tromey3-0/+39
* libjava.lang/PR162.out: New file. * libjava.lang/PR162.java: New file. From-SVN: r32384
2000-03-07resolve.cc (_Jv_SearchMethodInClass): New function.Bryce McKinlay10-224/+772
2000-03-07 Bryce McKinlay <bryce@albatross.co.nz> * resolve.cc (_Jv_SearchMethodInClass): New function. (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods. * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype. 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz> * java/lang/Class.h (union _Jv_IDispatchTable): New declaration. (struct _Jv_ifaces): New declaration. JV_CLASS: New macro definition. (getComponentType): Relocate below isArray() for inlining. (getModifiers): Declare `inline'. (getSuperclass): Ditto. (isArray): Ditto. (isPrimitive): Ditto. (_Jv_IsAssignableFrom): New prototype. (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C" linkage. (_Jv_InitClass): Move from natClass.cc. Declare `inline'. Check for JV_STATE_DONE before invoking initializeClass(). (_Jv_PrepareConstantTimeTables): New prototype. (_Jv_GetInterfaces): Ditto. (_Jv_GenerateITable): Ditto. (_Jv_GetMethodString): Ditto. (_Jv_AppendPartialITable): Ditto. (_Jv_FindIIndex): Ditto. depth, ancestors, idt: New class fields. * java/lang/natClass.cc (isAssignableFrom): Move functionality to inline function `_Jv_IsAssignableFrom'. Use that function. (isInstance): Declare `inline'. (initializeClass): Get lock on class before checking `state'. Unlock before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with the lock held. (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString. (_Jv_IsAssignableFrom): New inline function. Test assignability using class->depth and ancestor table. (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom. (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and _Jv_IsAssignableFrom. (_Jv_CheckArrayStore): Ditto. (_Jv_LookupInterfaceMethodIdx): New function. INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines. (_Jv_PrepareConstantTimeTables): New function. (_Jv_IndexOf): Ditto. (_Jv_GetInterfaces): Ditto. (_Jv_GenerateITable): Ditto. (_Jv_GetMethodString): Ditto. (_Jv_AppendPartialITable): Ditto. iindex_mutex, iindex_mutex_initialized: New static fields. (_Jv_FindIIndex): New function. * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields. * prims.cc (_Jv_CheckCast): Moved to natClass.cc. (_Jv_CheckArrayStore): Ditto. (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray): Moved to gcj/array.h. (_Jv_Realloc): New function. * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h. * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h. (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray): Implementations moved from prims.cc and declared `inline'. * gcj/javaprims.h (_Jv_Realloc): Prototype. * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype. From-SVN: r32382
2000-03-07Test for PR gcj/164:Tom Tromey3-0/+13
* libjava.compile/PR164.xfail: New file. * libjava.compile/PR164.java: New file. From-SVN: r32374
2000-03-07jni.cc (MARK_NONE): New define.Tom Tromey2-50/+117
* jni.cc (MARK_NONE): New define. (MARK_USER): Likewise. (MARK_SYSTEM): Likewise. (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size' smaller. (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert. (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE. (_Jv_JNI_PushLocalFrame): Use MARK_USER. (_Jv_JNI_PopLocalFrame): New version with additional `stop' argument. (call): Use MARK_SYSTEM. (_Jv_GetJNIEnvNewFrame): New function. (_Jv_LookupJNIMethod): New function. (_Jv_JNI_PopSystemFrame): New function. (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod. From-SVN: r32373
2000-03-06* libjava.compile/PR127.xfail: New file.Bryce McKinlay2-0/+2
From-SVN: r32357
2000-03-06re GNATS gcj/127 (gcj dumps core on method invocation on a primitive type)Bryce McKinlay2-0/+16
2000-03-06 Bryce McKinlay <bryce@albatross.co.nz> * libjava.compile/PR127.java: New file. PR 127 test case from Joerg Brunsmann. From-SVN: r32356
2000-03-06re GNATS gcj/124 (protected constructor for InvocationTargetException still ↵Tom Tromey5-5/+58
visible) * lib/libjava.exp (test_libjava): Document `shouldfail' token. (test_libjava_from_source): Handle `shouldfail' case. (test_libjava_from_javac): Likewise. Test for PR libgcj/124: * libjava.compile/PR124.java: New file. * libjava.compile/PR124.xfail: New file. From-SVN: r32353
2000-03-06re GNATS java.io/141 (StreamTokenizer doesn't scan mixed token types correctly)Anthony Green3-0/+55
2000-03-05 Anthony Green <green@redhat.com> * libjava.lang/PR141.java: New file. * libjava.lang/PR141.out: New file. For PR java.io/141. From-SVN: r32352
2000-03-06re GNATS libgcj/43 (jni.h not installed)Tom Tromey3-19/+71
Fix for PR libgcj/43: * include/Makefile.in: Rebuilt. * include/Makefile.am (include_HEADERS): New define. From-SVN: r32351
2000-03-05javaprims.h ("Java"): Remove FirstThread.Anthony Green2-1/+17
2000-03-08 Anthony Green <green@redhat.com> * gcj/javaprims.h ("Java"): Remove FirstThread. From-SVN: r32349
2000-03-05configure.host: Fix __NO_MATH_INLNES botch.Anthony Green9-27/+45
* configure.host: Fix __NO_MATH_INLNES botch. * Makefile.in: Rebuilt. * Makefile.am (nat_source_files): Move natFirstThread.cc. (gnu/gcj/runtime/FirstThread.h): Moved. (ordinary_java_source_files): Move FirstThread.java. * prims.cc: Deal with FirstThread movement. (JvRunMain): Ditto. (_Jv_RunMain): Ditto. * gnu/gcj/runtime/FirstThread.java: Moved from java/lang. * gnu/gcj/runtime/natFirstThread.cc: Ditto. From-SVN: r32348
2000-03-05re GNATS gcj/129 (Static array length access bug in gcj)Anthony Green3-0/+21
* libjava.compile/PR129_B.java: New file. * libjava.compile/support/PR129_A.java: New file. For PR gcj/129. From-SVN: r32340
2000-03-05DatagramSocket.java (DatagramSocket(int,InetAddress)): Handle null addresses.Warren Levy2-2/+7
* java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)): Handle null addresses. From-SVN: r32339
2000-03-05re GNATS gcj/151 (strange result on Math.sin(1e50))Anthony Green2-1/+6
* configure.host (libgcj_flags): Define __NO_MATH_INLINES. See PR gcj/151. From-SVN: r32337