Tom Tromey
9d6466593e
re PR libgcj/4213 (SimpleDateFormat constructor SEGV's.)
...
Fix for PR libgcj/4213:
* Makefile.am (ordinary_java_source_files): Added new file.
* gnu/gcj/text/LocaleData.java: New file.
From-SVN: r45381
2001-09-04 17:18:20 +00:00
Tom Tromey
9d09d14437
re PR libgcj/4208 (Problem using 'null' with Java reflection)
...
* java/lang/reflect/natField.cc (set): Allow for case when the
value is null. Fixes PR libgcj/4208.
From-SVN: r45367
2001-09-04 03:03:33 +00:00
Tom Tromey
464cf8d2bf
AlgorithmParameterSpec.java, [...]: Re-merged with Classpath.
...
* java/security/spec/AlgorithmParameterSpec.java,
java/security/spec/KeySpec.java: Re-merged with Classpath.
From-SVN: r45355
2001-09-02 06:36:55 +00:00
Tom Tromey
75df3bafe1
javaprims.h: Regenerated class list.
...
* gcj/javaprims.h: Regenerated class list.
* java/lang/IllegalThreadStateException.java,
java/lang/InstantiationException.java: Minor comment tweaks to
satisfy libgcj `classes.pl' script.
From-SVN: r45354
2001-09-02 06:26:09 +00:00
Tom Tromey
7eee682ba8
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (core_java_source_files): Added
UnsupportedClassVersionError.
* java/lang/UnsupportedClassVersionError.java: New file from
Classpath.
* java/io/CharConversionException.java, java/io/EOFException.java,
java/io/FileNotFoundException.java, java/io/IOException.java,
java/io/InterruptedIOException.java,
java/io/ObjectStreamException.java,
java/io/OptionalDataException.java,
java/io/StreamCorruptedException.java,
java/io/SyncFailedException.java,
java/io/UTFDataFormatException.java,
java/io/UnsupportedEncodingException.java,
java/lang/AbstractMethodError.java,
java/lang/ArithmeticException.java,
java/lang/ArrayIndexOutOfBoundsException.java,
java/lang/ArrayStoreException.java,
java/lang/ClassCastException.java,
java/lang/ClassCircularityError.java,
java/lang/ClassFormatError.java,
java/lang/CloneNotSupportedException.java, java/lang/Error.java,
java/lang/Exception.java,
java/lang/ExceptionInInitializerError.java,
java/lang/IllegalAccessError.java,
java/lang/IllegalAccessException.java,
java/lang/IllegalArgumentException.java,
java/lang/IllegalMonitorStateException.java,
java/lang/IllegalStateException.java,
java/lang/IllegalThreadStateException.java,
java/lang/IncompatibleClassChangeError.java,
java/lang/IndexOutOfBoundsException.java,
java/lang/InstantiationError.java,
java/lang/InstantiationException.java,
java/lang/InternalError.java, java/lang/InterruptedException.java,
java/lang/LinkageError.java,
java/lang/NegativeArraySizeException.java,
java/lang/NoClassDefFoundError.java,
java/lang/NoSuchFieldError.java,
java/lang/NoSuchFieldException.java,
java/lang/NoSuchMethodError.java,
java/lang/NoSuchMethodException.java,
java/lang/NullPointerException.java,
java/lang/NumberFormatException.java,
java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
java/lang/SecurityException.java,
java/lang/StackOverflowError.java,
java/lang/StringIndexOutOfBoundsException.java,
java/lang/ThreadDeath.java, java/lang/UnknownError.java,
java/lang/UnsatisfiedLinkError.java,
java/lang/UnsupportedOperationException.java,
java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
java/lang/reflect/InvocationTargetException.java,
java/net/BindException.java, java/net/ConnectException.java,
java/net/MalformedURLException.java,
java/net/NoRouteToHostException.java,
java/net/ProtocolException.java, java/net/SocketException.java,
java/net/UnknownHostException.java,
java/net/UnknownServiceException.java,
java/text/ParseException.java: Copied from Classpath, thanks to
Mark Wielaard who did the merge.
* java/lang/System.java (getProperty): Use single argument form of
SecurityManager.checkPropertyAccess.
* Makefile.in: Rebuilt.
* Makefile.am (core_java_source_files): Added VMSecurityManager.
* java/lang/VMSecurityManager.java: New file.
* java/lang/SecurityManager.java: Merged with Classpath.
From-SVN: r45353
2001-09-02 06:18:49 +00:00
Alexandre Petit-Bianco
bb52725527
final_assignment_check.java: New file.
...
2001-08-28 Alexandre Petit-Bianco <apbianco@redhat.com>
* libjava.compile/final_assignment_check.java: New file.
* libjava.compile/final_assignment_check.xfail: Likewise.
* libjava.compile/final_local_switch.java: Likewise.
(http://gcc.gnu.org/ml/java-patches/2001-q3/msg00342.html )
From-SVN: r45346
2001-08-31 21:54:05 -07:00
Per Bothner
dee45a7f96
javaprims.h (_Jv_RegisterClassHook): New extern declaration.
...
* gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
(_Jv_RegisterClassHookDefault): Likewise.
* java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
* java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
(_Jv_RegisterClassHookDefault): New.function.
(_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
From-SVN: r45344
2001-08-31 18:26:14 -07:00
Per Bothner
8635bb79f2
ClassLoader.java (system): Remove static field.
...
* java/lang/ClassLoader.java (system): Remove static field.
(getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
directly instead of using it to set the system field.
(loadClass): Use VMClassLoader.instance instead of system field.
(findSystemClass): Similar.
* prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
than ClassLoader::system which no longer exists.
* java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
From-SVN: r45343
2001-08-31 18:17:24 -07:00
Tom Tromey
788d7b942c
BufferedReader.java, [...]: Re-merged with Classpath.
...
* java/io/BufferedReader.java, java/io/ObjectInput.java,
java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
Re-merged with Classpath.
From-SVN: r45342
2001-09-01 00:59:09 +00:00
Tom Tromey
4504a65546
Re-merge with Classpath:
...
* java/util/Comparator (equals): Added.
* java/io/PipedWriter.java (write): Changed argument to `int'.
* java/io/FileDescriptor.java (FileDescriptor()): New
constructor.
* java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
From-SVN: r45337
2001-08-31 22:31:40 +00:00
Tom Tromey
7a95ae6b51
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (ordinary_java_source_files): Removed
EnumerationChain, added DoubleEnumeration.
(nat_source_files): Added natResourceBundle.cc.
* java/util/natResourceBundle.cc: New file.
* gnu/java/util/DoubleEnumeration.java: New file.
* gnu/gcj/util/EnumerationChain.java: Removed.
* java/beans/VetoableChangeSupport.java: Merged with Classpath.
* java/util/ResourceBundle.java: Merged with Classpath.
* java/util/StringTokenizer.java: Merged with Classpath.
* java/util/Locale.java: Merged with Classpath.
* java/util/Random.java: Merged with Classpath.
* java/util/PropertyResourceBundle.java: Merged with Classpath.
* java/util/ListResourceBundle.java: Merged with Classpath.
* java/util/ConcurrentModificationException.java: Re-merged with
Classpath.
* java/util/EmptyStackException.java: Likewise.
* java/util/MissingResourceException.java: Likewise.
* java/util/NoSuchElementException.java: Likewise.
* java/util/TooManyListenersException.java: Likewise.
From-SVN: r45335
2001-08-31 21:31:20 +00:00
Tom Tromey
636c570696
ByteArrayOutputStream.java: Re-merged with Classpath.
...
* java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
* java/io/OptionalDataException.java: Merged with Classpath.
From-SVN: r45327
2001-08-31 17:11:27 +00:00
Jason Merrill
6c8d43e78d
exception.cc (PERSONALITY_FUNCTION): Simplify leb128 handling.
...
* exception.cc (PERSONALITY_FUNCTION): Simplify
leb128 handling.
From-SVN: r45317
2001-08-31 08:27:32 -04:00
Tom Tromey
35ddff9f08
* java/io/ByteArrayInputStream.java: Merged with Classpath.
...
From-SVN: r45309
2001-08-31 05:58:46 +00:00
Tom Tromey
599654283d
* java/io/BufferedReader.java: Re-merged with Classpath.
...
From-SVN: r45307
2001-08-31 05:00:12 +00:00
Per Bothner
4046760603
BigInteger.java (init(int,Random)): New method.
...
* java/math/BigInteger.java (init(int,Random)): New method.
Move body of constructor <init>(int,Random)) here.
Re-write it to avoid constructing unneeded temporaries.
(<init>(int,int,Random)): Use new init method to avoid constructing
extra temporary BigIntegers.
From-SVN: r45240
2001-08-28 15:16:11 -07:00
Tom Tromey
83e7315b5f
Activatable.java, [...]: RMI implementation from Kaffe.
...
* java/rmi/activation/Activatable.java,
java/rmi/activation/ActivateFailedException.java,
java/rmi/activation/ActivationDesc.java,
java/rmi/activation/ActivationException.java,
java/rmi/activation/ActivationGroup.java,
java/rmi/activation/ActivationGroupDesc.java,
java/rmi/activation/ActivationGroupID.java,
java/rmi/activation/ActivationID.java,
java/rmi/activation/ActivationInstantiator.java,
java/rmi/activation/ActivationMonitor.java,
java/rmi/activation/ActivationSystem.java,
java/rmi/activation/Activator.java,
java/rmi/activation/UnknownGroupException.java,
java/rmi/activation/UnknownObjectException.java,
java/rmi/AccessException.java,
java/rmi/AlreadyBoundException.java,
java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
java/rmi/NotBoundException.java,
java/rmi/RMISecurityException.java,
java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
java/rmi/RemoteException.java, java/rmi/ServerError.java,
java/rmi/ServerException.java,
java/rmi/ServerRuntimeException.java,
java/rmi/StubNotFoundException.java,
java/rmi/UnexpectedException.java,
java/rmi/UnknownHostException.java,
java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
java/rmi/registry/LocateRegistry.java,
java/rmi/registry/Registry.java,
java/rmi/registry/RegistryHandler.java,
java/rmi/server/ExportException.java,
java/rmi/server/LoaderHandler.java,
java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
java/rmi/server/Operation.java,
java/rmi/server/RMIClassLoader.java,
java/rmi/server/RMIClientSocketFactory.java,
java/rmi/server/RMIFailureHandler.java,
java/rmi/server/RMIServerSocketFactory.java,
java/rmi/server/RMISocketFactory.java,
java/rmi/server/RemoteCall.java,
java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
java/rmi/server/RemoteServer.java,
java/rmi/server/RemoteStub.java,
java/rmi/server/ServerCloneException.java,
java/rmi/server/ServerNotActiveException.java,
java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
java/rmi/server/SkeletonMismatchException.java,
java/rmi/server/SkeletonNotFoundException.java,
java/rmi/server/SocketSecurityException.java,
java/rmi/server/UID.java,
java/rmi/server/UnicastRemoteObject.java,
java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
gnu/java/rmi/dgc/DGCImpl_Skel.java,
gnu/java/rmi/dgc/DGCImpl_Stub.java,
gnu/java/rmi/registry/RegistryImpl.java,
gnu/java/rmi/registry/RegistryImpl_Skel.java,
gnu/java/rmi/registry/RegistryImpl_Stub.java,
gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
gnu/java/rmi/server/ProtocolConstants.java,
gnu/java/rmi/server/RMIDefaultSocketFactory.java,
gnu/java/rmi/server/RMIHashes.java,
gnu/java/rmi/server/RMIObjectInputStream.java,
gnu/java/rmi/server/RMIObjectOutputStream.java,
gnu/java/rmi/server/UnicastConnection.java,
gnu/java/rmi/server/UnicastConnectionManager.java,
gnu/java/rmi/server/UnicastRef.java,
gnu/java/rmi/server/UnicastRemoteCall.java,
gnu/java/rmi/server/UnicastRemoteStub.java,
gnu/java/rmi/server/UnicastServer.java,
gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
Kaffe. Relabelled classes to fit into Classpath tree.
* Makefile.in: Rebuilt.
* Makefile.am (rmi_java_source_files): New macro.
(ordinary_java_source_files): Reference it.
(bin_PROGRAMS): Added rmic and rmiregistry.
(rmic_SOURCES): New macro.
(EXTRA_rmic_SOURCES): Likewise.
(rmic_LDFLAGS): Likewise.
(rmic_LINK): Likewise.
(rmic_LDADD): Likewise.
(rmic_DEPENDENCIES): Likewise.
(rmiregistry_SOURCES): New macro.
(EXTRA_rmiregistry_SOURCES): Likewise.
(rmiregistry_LDFLAGS): Likewise.
(rmiregistry_LINK): Likewise.
(rmiregistry_LDADD): Likewise.
(rmiregistry_DEPENDENCIES): Likewise.
From-SVN: r45218
2001-08-28 00:03:35 +00:00
Alexandre Petit-Bianco
763bb30cbe
KeepInline.out: Fixed content.
...
2001-08-24 Alexandre Petit-Bianco <apbianco@redhat.com>
* libjava.lang/KeepInline.out: Fixed content.
(http://gcc.gnu.org/ml/java-patches/2001-q3/msg00290.html )
From-SVN: r45186
2001-08-27 06:31:06 -07:00
Bryce McKinlay
2dc55bc99f
Makefile.am: New friends for java/lang/Thread.h.
...
* Makefile.am: New friends for java/lang/Thread.h.
* prims.cc (runFirst): Removed.
(JvRunMain): Merged into _Jv_RunMain. Now just calls that.
(_Jv_RunMain): Now takes either a klass or class name parameter.
Create a gnu.gcj.runtime.FirstThread and attach the native thread
to that, then run it using _Jv_ThreadRun. Remove special handling of
jar files, instead pass is_jar parameter through to FirstThread.
* gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
of _Jv_AttachCurrentThread.
* gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
(run): New method. Take care of looking up main class manifest
attribute and calling forName if neccessary. Then call call_main.
(call_main): New native method.
* gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
relocated from prims.cc. Look up and call main method.
* java/lang/Thread.java (run_): Removed.
* java/lang/natThread.cc (run_): Renamed to...
(_Jv_ThreadRun): this. JVMPI notification code moved to ...
(_Jv_NotifyThreadStart): here. New function.
(countStackFrames, destroy, resume, suspend, stop): Throw
UnsupportedOperationExceptions rather than JvFail'ing.
(_Jv_AttachCurrentThread): New variant takes a Thread argument.
Existing version wraps new variant.
From-SVN: r45182
2001-08-26 12:30:09 +01:00
Bryce McKinlay
387edc7625
* name-finder.cc (lookup): Ignore a null dli_fname from d
...
From-SVN: r45181
2001-08-26 11:09:59 +01:00
Tom Tromey
224b7b7b0c
Field.java (toString): Use Method.appendClassName.
...
* java/lang/reflect/Field.java (toString): Use
Method.appendClassName.
* java/lang/reflect/Constructor.java (toString): Use
Method.appendClassName.
* java/lang/reflect/Method.java: Reindented.
(appendClassName): New method.
(toString): Use it.
* defineclass.cc (handleMethod ): Initialize `throws' field of
method.
(read_one_method_attribute): Handle Exceptions attribute.
* java/lang/reflect/natMethod.cc (ClassClass): Removed.
(ObjectClass): Removed.
(getType): Compute `exception_types'.
* java/lang/Class.h (struct _Jv_Method): Added `throws' field.
From-SVN: r45153
2001-08-24 17:24:44 +00:00
Anthony Green
cb7d9f6769
Look for lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
...
From-SVN: r45115
2001-08-22 23:10:07 +00:00
Jeff Sturm
71038fd576
IdentityHashMap.java (get): Fix off-by-one error.
...
* java/util/IdentityHashMap.java (get): Fix off-by-one error.
(put): Likewise.
From-SVN: r45077
2001-08-21 14:24:48 +00:00
Tom Tromey
4c8d8761b0
* java/awt/GridBagConstraints.java: Removed comment.
...
From-SVN: r45061
2001-08-20 19:53:14 +00:00
Tom Tromey
a4f291fc90
jni.cc (nathash, [...]): New globals.
...
* jni.cc (nathash, nathash_count, nathash_size): New globals.
(DELETED_ENTRY): New define.
(hash): New function.
(nathash_find_slot): Likewise.
(natrehash): Likewise.
(nathash_add): Likewise.
(_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
nathash_add.
(nathash_find): New function.
(_Jv_LookupJNIMethod): Use it. Synchronize body.
(call): Synchronize around assignment.
From-SVN: r45060
2001-08-20 19:52:02 +00:00
Jeff Sturm
8ff6222751
UnicodeToBytes.java (write): Write work buffer starting from zero offset.
...
* gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
starting from zero offset.
From-SVN: r44997
2001-08-18 03:56:01 +00:00
Hans Boehm
eed5666980
boehm.cc: Include gc_local_alloc.h if appropriate.
...
2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
* boehm.cc: Include gc_local_alloc.h if appropriate.
(GC_GENERIC_MALLOC): Don't define.
(MAYBE_MARK): Redefine for GC 6.0.
(_Jv_MarkObj): Mark class differently.
(_Jv_AllocArray): Use GC_generic_malloc.
From-SVN: r44993
2001-08-18 01:01:51 +00:00
Alexandre Petit-Bianco
9fba6f962f
XercesBug.java: New file.
...
2001-08-17 Alexandre Petit-Bianco <apbianco@redhat.com>
* libjava.compile/XercesBug.java: New file.
(http://gcc.gnu.org/ml/gcc-patches/2001-08/msg01066.html )
From-SVN: r44987
2001-08-17 15:26:15 -07:00
Mark J Roberts
62ee966e9c
BigInteger.java (randBytes): New method.
...
2001-08-17 Mark J Roberts <mjr@anarcast.net>
* java/math/BigInteger.java (randBytes): New method.
(BigInteger(int,Random)): Use randBytes.
From-SVN: r44984
2001-08-17 22:21:02 +00:00
Tom Tromey
d1356866eb
* gnu/gcj/convert/IOConverter.java: Add `646' alias.
...
From-SVN: r44965
2001-08-17 18:09:24 +00:00
Hans Boehm
c8e6d3a499
* BigInteger.java: fix right shifts by nonzero multiples of 32.
...
From-SVN: r44964
2001-08-17 16:33:49 +00:00
Hans Boehm
552bf3d6af
* BigInteger.java: fix right shifts by nonzero multiples of 32.
...
From-SVN: r44963
2001-08-17 16:28:32 +00:00
Tom Tromey
ac8d99218a
jni.cc: Include IdentityHashMap.h, not Hashtable.h.
...
* jni.cc: Include IdentityHashMap.h, not Hashtable.h.
(local_ref_table, global_ref_table): Now IdentityHashMap.
(_Jv_JNI_Init): Updated for new types.
(mark_for_gc): Likewise.
(unmark_for_gc): Likewise.
* gcj/javaprims.h: Rebuilt class list.
* Makefile.in: Rebuilt.
* Makefile.am (core_java_source_files): Added new file.
* java/util/IdentityHashMap.java: New file.
From-SVN: r44929
2001-08-15 20:46:48 +00:00
Tom Tromey
369e1d74c6
natIconv.cc (read): Handle EINVAL and E2BIG correctly.
...
* gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
correctly.
From-SVN: r44928
2001-08-15 20:24:00 +00:00
Tom Tromey
586b870d4f
SampleModel.java (getPixel): Set correct array element.
...
* java/awt/image/SampleModel.java (getPixel): Set correct array
element. From Chris Meyer.
From-SVN: r44871
2001-08-13 21:38:07 +00:00
Alexandre Petit-Bianco
11cdfad624
Matrix4f.java: New file.
...
2001-08-12 Alexandre Petit-Bianco <apbianco@redhat.com>
* libjava.lang/Matrix4f.java: New file.
* libjava.lang/Matrix4f.out: New file.
(http://gcc.gnu.org/ml/gcc-patches/2001-08/msg00737.html )
From-SVN: r44864
2001-08-13 11:06:22 -07:00
Loren J. Rittle
6e15d3a83a
* gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
...
From-SVN: r44772
2001-08-10 17:39:34 +00:00
Loren J. Rittle
cc3835e651
* java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
...
From-SVN: r44771
2001-08-10 17:37:41 +00:00
Tom Tromey
012ca3e055
InputStreamReader.java (refill): Only call refill on BufferedInputStream when appropriate constraints are met.
...
* java/io/InputStreamReader.java (refill): Only call refill on
BufferedInputStream when appropriate constraints are met.
From-SVN: r44675
2001-08-06 22:01:32 +00:00
Tom Tromey
f3997ccf90
StringWriter.java: Merged with Classpath.
...
* java/io/StringWriter.java: Merged with Classpath.
* java/io/InputStream.java: Merged with Classpath.
* java/io/OutputStream.java: Merged with Classpath.
* java/io/PushbackInputStream.java: Merged with Classpath.
* java/io/CharArrayReader.java: Merged with Classpath.
* java/io/CharArrayWriter.java: Merged with Classpath.
From-SVN: r44652
2001-08-05 22:41:30 +00:00
Richard Henderson
cba5553ae6
* libjava.jni/calls.c (Java_calls_docall): Fix typo.
...
From-SVN: r44601
2001-08-03 09:21:23 -07:00
Tom Tromey
870f3799af
prims.cc (JNI_OnLoad): Don't declare.
...
* prims.cc (JNI_OnLoad): Don't declare.
(_JNI_OnLoad): Don't define.
(_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
From-SVN: r44590
2001-08-03 01:25:17 +00:00
Tom Tromey
8d6a437584
RandomAccessFile.java (seek): Let seek go past end of file.
...
* java/io/RandomAccessFile.java (seek): Let seek go past end of
file.
(skipBytes): Don't fail if seeking past end of file.
* java/io/FileInputStream.java (skip): Don't fail if seeking past
end of file.
* java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
argument.
* java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
argument.
* java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
argument.
* java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
From-SVN: r44586
2001-08-02 23:46:39 +00:00
Martin Kahlert
6ff02a9579
jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order to initialize global_ref_table/local_ref_table.
...
2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
* jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
to initialize global_ref_table/local_ref_table.
From-SVN: r44583
2001-08-02 22:12:40 +00:00
Tom Tromey
1518ec6053
configure: Rebuilt.
...
* configure: Rebuilt.
* configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
David Billinghurst.
From-SVN: r44576
2001-08-02 17:08:37 +00:00
Rainer Orth
60a78ccfac
re PR libgcj/3694 (natPlainDatagramSocketImpl.cc doesn't compile in ALPHA OSF1)
...
* include/posix.h (_POSIX_PII_SOCKET): Define.
* configure.in (HAVE_SOCKLEN_T): Define.
* java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
definition up.
(_JV_accept): New function, avoids Tru64 UNIX accept macro.
(java::net::PlainSocketImpl::accept): Use it.
Fixes PRs libgcj/3694, libgcj/3696.
* configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
* acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
* configure, include/config.h.in: Regenerate.
* java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
(mcastGrp): Likewise.
(java::net::PlainDatagramSocketImpl::setOption): Guard against
missing IPV6_MULTICAST_IF.
Fixes PR libgcj/3694.
From-SVN: r44546
2001-08-01 17:53:00 +00:00
Jeff Sturm
868f43d886
KeepInline.java: New file.
...
* libjava.lang/KeepInline.java: New file.
* libjava.lang/KeepInline.out: New file.
From-SVN: r44540
2001-08-01 12:40:06 +00:00
Jeff Sturm
9042f830ca
* libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
...
From-SVN: r44539
2001-08-01 12:33:38 +00:00
Christian Iseli
0498eaeaab
Makefile.in: Rebuilt.
...
2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
* Makefile.in: Rebuilt.
* Makefile.am (GCJLINK): Added --tag=GCJ.
(LIBLINK): Likewise.
From-SVN: r44520
2001-07-31 21:46:12 +00:00
Tom Tromey
e8b3bcfd3f
* java/util/Date.java: Re-merged with Classpath.
...
From-SVN: r44497
2001-07-31 03:01:47 +00:00
Jeff Sturm
1292bc9fe8
SyncTest.java: New file.
...
* libjava.lang/SyncTest.java: New file.
* libjava.lang/SyncTest.out: New file.
* libjava.lang/SyncTest.xfail: New file.
From-SVN: r44495
2001-07-31 02:13:46 +00:00
Jeff Sturm
2ff78183f8
natPlainDatagramSocketImpl.cc: Undefine bind if defined.
...
* java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
(_Jv_bind): New static function.
(bind): Use _Jv_bind.
* java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
(_Jv_bind, _Jv_connect): New static functions.
(bind): Use _Jv_bind.
(connect): Use _Jv_connect.
From-SVN: r44494
2001-07-31 01:59:44 +00:00
Tom Tromey
3d5aea8366
natIconv.cc (done): New methods.
...
2001-07-30 Tom Tromey <tromey@redhat.com>
Corey Minyard <minyard@acm.org>
* gnu/gcj/convert/natIconv.cc (done): New methods.
* gnu/gcj/convert/Output_iconv.java (done): New method.
* gnu/gcj/convert/Input_iconv.java (done): New method.
* gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
Removed.
(getDefaultEncodingClass): Removed.
(getDefaultEncoder): Use getEncoder.
(done): New method.
(defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
static fields.
* gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
Removed.
(defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
static fields.
(getDefaultDecodingClass): Removed.
(getDefaultDecoder): Use getDecoder.
(getDecoder): Look up decoder in cache.
(done): New method.
* java/lang/natString.cc (init): Call `done' on converter.
(getBytes): Likewise.
Co-Authored-By: Corey Minyard <minyard@acm.org>
From-SVN: r44484
2001-07-30 20:24:18 +00:00
Tom Tromey
d76cbbc844
* java/lang/Integer.java: Merged with Classpath.
...
From-SVN: r44478
2001-07-30 17:58:32 +00:00
Bryce McKinlay
6941ff9559
GregorianCalendar.java (GregorianCalendar): Call setTimeInMillis() to set the default/current time.
...
* java/util/GregorianCalendar.java (GregorianCalendar): Call
setTimeInMillis() to set the default/current time.
From-SVN: r44467
2001-07-30 01:41:31 +01:00
Mark Wielaard
7729617cf8
* HACKING: add description on updating namespace
...
From-SVN: r44454
2001-07-29 10:05:08 +00:00
Rainer Orth
08ecdbebab
g++.exp (g++_set_ld_library_path): Renamed to ${tool}_set_ld_library_path.
...
gcc/testsuite:
* lib/g++.exp (g++_set_ld_library_path): Renamed to
${tool}_set_ld_library_path.
Changed caller.
* lib/objc.exp (${tool}_set_ld_library_path): New, copied from
g++.exp.
libjava/testsuite:
* lib/libjava.exp (${tool}_set_ld_library_path): New, copied from
g++.exp.
From-SVN: r44420
2001-07-27 12:21:56 +00:00
Bryce McKinlay
fa397ddafb
Calendar.java (set): Never recompute fields here.
...
* java/util/Calendar.java (set): Never recompute fields here. They
will already be set if someone set time explicitly, and it can cause
problems to do so. Don't invalidate AM_PM setting if HOUR is set.
* java/util/GregorianCalendar.java (computeTime): Don't ignore an
HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
sane.
* java/text/SimpleDateFormat.java (defaultCentury): New field.
(readObject): Call set2DigitYearStart if appropriate so that
defaultCentury is calculated.
(SimpleDateFormat): Don't bother clearing calendar here. Call
computeCenturyStart().
(set2DigitYearStart): Calculate and set defaultCentury.
(format): Don't clone the calendar. Use "calendar" not "theCalendar"
everywhere.
(parse): Likewise. If the pattern is "y" or "yy" and it found exactly
2 numeric digits, use the 80-20 heuristic to parse the value into a
default century based on defaultCenturyStart.
(computeCenturyStart): Rewritten. Call set2DigitYearStart().
From-SVN: r44395
2001-07-26 12:21:45 +01:00
Tom Tromey
a9e83c1b1b
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (libgcj.jar): Correctly fail when bytecode
compilation fails.
From-SVN: r44359
2001-07-25 16:40:04 +00:00
Rainer Orth
edd60b15d1
prims.cc (_JNI_OnLoad): New function.
...
* prims.cc (_JNI_OnLoad): New function.
(JNI_OnLoad): Use it.
(_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
From-SVN: r44316
2001-07-24 20:08:58 +00:00
Rainer Orth
6e6958dce4
Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
...
* Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
Makefile.in: Regenerate.
From-SVN: r44314
2001-07-24 19:51:34 +00:00
Tom Tromey
82545bf72f
VMClassLoader.java (getPrimitiveClass): Return correct type.
...
* java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
type.
From-SVN: r44296
2001-07-24 14:31:42 +00:00
Tom Tromey
e109d16f8c
javaprims.h: Rebuilt class list.
...
* gcj/javaprims.h: Rebuilt class list.
* Makefile.in: Rebuilt.
* Makefile.am (core_java_source_files): Added VMClassLoader.
* java/lang/VMClassLoader.java: New file.
* java/lang/Boolean.java: Merged with Classpath.
* java/lang/Byte.java: Merged with Classpath.
* java/lang/Integer.java: Merged with Classpath.
* java/lang/Long.java: Merged with Classpath.
* java/lang/Number.java: Merged with Classpath.
* java/lang/Short.java: Merged with Classpath.
From-SVN: r44274
2001-07-23 20:01:29 +00:00
Jeff Sturm
092a1f5ab3
configure.host: Enable hash synchronization for alpha*-*.
...
* 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-23 03:51:17 +00:00
Jeff Sturm
deaabf1413
re PR java/3731 (gcj should generate class init code for instanceof)
...
* libjava.lang/PR3731.java: New file.
* libjava.lang/PR3731.out: New file.
* libjava.lang/PR3731.xfail: New file.
From-SVN: r44151
2001-07-19 14:03:08 +00:00
Rainer Orth
06c271c3cf
natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC 2533 socket options 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-18 20:39:52 +00:00
Tom Tromey
e5c83273cf
natFileWin32.cc (_access): Renamed.
...
* 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-18 18:35:12 +00:00
Tom Tromey
860a15368d
For PR java/2812:
...
* libgcj.spec.in (*lib): Added LIBICONV.
* configure: Rebuilt.
* configure.in: Call AM_ICONV. Don't check for iconv function.
Add parameters to JV_HASH_SYNCHRONIZATION define.
* acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
From-SVN: r44116
2001-07-18 17:06:24 +00:00
Alexandre Petit-Bianco
ba75520fff
i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused local `_ebp.'
...
2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
* include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
local `_ebp.'
(http://gcc.gnu.org/ml/java-patches/2001-q3/msg00070.html )
From-SVN: r44093
2001-07-17 16:59:07 -07:00
Bryce McKinlay
f79ced717f
LinkedList.java (clone): Clear the copy list with clear(), not by setting 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-17 02:56:38 +01:00
Alexandre Petit-Bianco
e47c5acd7b
anon_ctor_itf_arg.java: Moved to `libjava.lang.'
...
2001-07-12 Alexandre Petit-Bianco <apbianco@redhat.com>
* libjava.compile/anon_ctor_itf_arg.java: Moved to `libjava.lang.'
* libjava.compile/anon_ctor_itf_arg.out: Likewise
* libjava.lang/invoke_from_inner.java: New file.
* libjava.lang/invoke_from_inner.out: Likewise.
(http://gcc.gnu.org/ml/java-patches/2001-q3/msg00061.html )
From-SVN: r43994
2001-07-13 12:45:05 -07:00
Tom Tromey
a9a399fe24
re PR libgcj/3426 (java.io.InputStreamReader, infinite loop)
...
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-13 05:41:28 +00:00
Alexandre Petit-Bianco
c813baa415
anon_ctor_itf_arg.java: New file.
...
2001-07-12 Alexandre Petit-Bianco <apbianco@redhat.com>
* libjava.compile/anon_ctor_itf_arg.java: New file.
* libjava.compile/anon_ctor_itf_arg.out: New file.
(http://gcc.gnu.org/ml/java-patches/2001-q3/msg00059.html )
From-SVN: r43974
2001-07-12 14:39:56 -07:00
Tom Tromey
b9aaec62b7
* libjava.lang/N19990310_4.xfail: Removed.
...
From-SVN: r43968
2001-07-12 17:06:33 +00:00
Tom Tromey
a3e5ae6dd8
Report from Henner Zeller:
...
* java/io/FileOutputStream.java (FileOutputStream): Throw
FileNotFoundException, not IOException.
From-SVN: r43966
2001-07-12 15:37:43 +00:00
Anthony Green
9556f88777
Add some org packages.
...
From-SVN: r43922
2001-07-11 03:59:16 +00:00
Alexandre Petit-Bianco
aac560ac26
Makefile.am: Added `java/lang/ThreadLocal.java'.
...
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-10 17:47:37 -07:00
Jeff Sturm
3b1e7311a8
Makefile.am (libgcj.jar): Don't recursively make built_java_source_files.
...
* Makefile.am (libgcj.jar): Don't recursively make
built_java_source_files. Avoid long command lines.
Don't change to $(srcdir) to invoke javac.
(libgcj.la, libgcjx.la); Avoid long command lines.
($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
* Makefile.in: Rebuilt.
From-SVN: r43836
2001-07-07 14:49:43 +00:00
Andrew Haley
b8ef6023aa
i386-signal.h: Don't do anything with unsigned divide overflow except throw an exception.
...
2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
* include/i386-signal.h: Don't do anything with unsigned divide
overflow except throw an exception.
From-SVN: r43813
2001-07-06 16:33:10 +00:00
Andrew Haley
b32685987f
Divide_1.java: Add may more test cases.
...
2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
* libjava.lang/Divide_1.java: Add may more test cases.
* libjava.lang/Divide_1.out: Likewise.
From-SVN: r43812
2001-07-06 16:32:40 +00:00
Tom Tromey
0bedbbdf1b
For PR java/3562:
...
* java/lang/Class.h (Class(void)): Now private. Removed
implementation. From dmorsberger@sensysdl.com .
From-SVN: r43781
2001-07-05 15:57:09 +00:00
Jeff Sturm
38733dbb29
II.java: New file.
...
* libjava.lang/II.java: New file.
* libjava.lang/II.out: New file.
From-SVN: r43744
2001-07-03 23:52:27 +00:00
Tom Tromey
1abd48ad23
configure: Rebuilt.
...
* configure: Rebuilt.
* configure.in: Added aux-dir hacks to satisfy automake and
in-tree builds.
From-SVN: r43740
2001-07-03 22:33:24 +00:00
Tom Tromey
fe3dac3d3c
re PR bootstrap/3281 (Installation failure (mkinstalldirs))
...
Fix for PR bootstrap/3281:
* aclocal.m4, configure: Rebuilt.
* acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
Correctly compute libgcj_basedir.
(mkinstalldirs): Define and subst.
From-SVN: r43739
2001-07-03 22:31:43 +00:00
Jeremy Nimmer
e2a6abb6d5
For PR libgcj/3523:
...
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-07-02 05:16:24 +00:00
Tom Tromey
6dc04dec65
IOConverter.java: Manually maintained alias now lowercase.
...
* gnu/gcj/convert/IOConverter.java: Manually maintained alias now
lowercase.
From-SVN: r43620
2001-06-27 21:56:08 +00:00
Tom Tromey
c0aa72210a
encodings.pl: Generate lower-case names.
...
* scripts/encodings.pl: Generate lower-case names. Updated URL
for `character-sets' file.
* gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
lower case.
Rebuilt list of aliases.
From-SVN: r43566
2001-06-26 04:36:47 +00:00
Tom Tromey
62d73fa83b
natFileDescriptorPosix.cc (open): Change error message formatting.
...
* java/io/natFileDescriptorPosix.cc (open): Change error message
formatting. From David Brownell.
From-SVN: r43564
2001-06-26 03:27:57 +00:00
Tom Tromey
c94ef60f8f
* libjava.lang/stub.xfail: Removed.
...
From-SVN: r43558
2001-06-25 20:36:16 +00:00
Andreas Jaeger
20f8e4c7cc
jni.exp (gcj_jni_compile_c_to_so): Fix path for jni.h.
...
* libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Fix path for
jni.h.
From-SVN: r43549
2001-06-25 06:48:55 +02:00
Tom Tromey
470042c712
java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
...
* include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
From Corey Minyard.
From-SVN: r43484
2001-06-21 15:17:21 +00:00
Mark J. Roberts
a0d4ddde2c
BigInteger.java (byteArrayToIntArray): Don't include extraneous/malformed 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-19 11:42:03 +00:00
Tom Tromey
a5c30a8cff
* jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
...
From-SVN: r43415
2001-06-15 23:44:45 +00:00
Tom Tromey
6728a61d1f
natRuntime.cc (_Jv_FindSymbolInExecutable): Return NULL if no library on the 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-15 23:22:02 +00:00
Tom Tromey
39986dd5ee
jni.cc (ClassClass): Removed; updated all users.
...
* jni.cc (ClassClass): Removed; updated all users.
(ObjectClass): Likewise.
(ThrowableClass): Likewise.
(MethodClass): Likewise.
(ThreadGroupClass): Likewise.
(local_ref_table): Renamed from `ref_table'.
(global_ref_table): New global.
(_Jv_JNI_Init): Initialize both ref tables.
(mark_for_gc): Added `ref_table' parameter.
(unmark_for_gc): Likewise. Also, fail if we unreferenced too many
times.
(_Jv_JNI_NewGlobalRef): Updated for new mark function.
(_Jv_JNI_DeleteGlobalRef): Likewise.
(_Jv_JNI_DeleteLocalRef): Likewise.
(_Jv_JNI_NewLocalRef): Likewise.
(_Jv_JNI_PopLocalFrame): Likewise.
(_Jv_JNI_GetStringChars): Likewise.
(_Jv_JNI_ReleaseStringChars): Likewise.
(_Jv_JNI_GetPrimitiveArrayElements): Likewise.
(_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
From-SVN: r43409
2001-06-15 22:09:10 +00:00
Tom Tromey
d19da8d1b4
jni.exp: New file.
...
* libjava.jni/jni.exp: New file.
* lib/libjava.exp (gcj_link): New proc.
From-SVN: r43375
2001-06-14 17:46:53 +00:00
Tom Tromey
fc07ebe2a7
re PR libgcj/3144 (java.lang.Date.compareTo() not supported)
...
Fix for PR libgcj/3144:
* java/util/Date.java: Merged with Classpath.
From-SVN: r43374
2001-06-14 15:41:57 +00:00
Per Bothner
3b1ba991df
Added John Gilmore.
...
From-SVN: r43330
2001-06-13 10:44:40 -07:00
Tom Tromey
2ee7cd3e81
aclocal.m4, configure: Rebuilt.
...
* aclocal.m4, configure: Rebuilt.
* acinclude.m4: Find configure.host in srcdir.
From-SVN: r43325
2001-06-13 16:48:29 +00:00
Alexandre Petit-Bianco
9b8c19b4f5
exception.cc (cstdlib): Replaces stdlib.h.
...
2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
* exception.cc (cstdlib): Replaces stdlib.h.
(_Jv_Throw): Use std::abort().
(PERSONALITY_FUNCTION): Likewise.
(http://gcc.gnu.org/ml/gcc-patches/2001-06/msg00620.html )
From-SVN: r43153
2001-06-10 13:59:37 -07:00
Alexandre Oliva
9dd7e9cf22
acinclude.m4 (AC_EXEEXT): Work around in case it expands to nothing, as in autoconf 2.50.
...
* acinclude.m4 (AC_EXEEXT): Work around in case it expands to
nothing, as in autoconf 2.50.
* aclocal.m4, configure: Rebuilt.
From-SVN: r43108
2001-06-09 21:29:16 +00:00
Alexandre Oliva
4e0abb1d51
acinclude.m4 (AC_EXEEXT): Work around in case it expands to nothing, as in autoconf 2.50.
...
* acinclude.m4 (AC_EXEEXT): Work around in case it expands to
nothing, as in autoconf 2.50.
* configure: Rebuilt.
From-SVN: r43104
2001-06-09 20:31:23 +00:00
Tom Tromey
f1eba84741
configure: Rebuilt.
...
* configure: Rebuilt.
* configure.in: Compute new aux dir using `pwd'.
From-SVN: r43064
2001-06-08 23:40:17 +00:00
Tom Tromey
fdf448f76b
re PR libgcj/2874 (libjava testsuite disk space usage)
...
Fix for PR libgcj/2874:
* libjava.mauve/mauve.exp (gcj_run_mauve_tests): New proc.
(test_mauve): Return 0 on failure.
* lib/libjava.exp (test_libjava_from_source): Remove generated
files if test is successful.
(test_libjava_from_javac): Likewise.
(gcj_cleanup): New proc.
From-SVN: r43050
2001-06-08 22:12:28 +00:00
Tom Tromey
4c399c87ef
re PR libgcj/3059 (System doesn't set java.home property)
...
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-08 19:09:04 +00:00
Tom Tromey
7f7ba9bf90
For PR bootstrap/3075:
...
* configure, aclocal.m4, Makefile.am: Rebuilt.
* configure.in: Pass `--with-auxdir' to subdir configure. Don't
call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
relative to libgcj_basedir.
* acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
AC_CANONICAL_SYSTEM here.
* Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
libgcj_basedir.
($(extra_headers)): New target.
From-SVN: r43034
2001-06-08 18:02:03 +00:00
Jeff Sturm
9166f7a36a
libjava.exp (libjava_arguments): Build with `-no-install' when $mode == "link".
...
* lib/libjava.exp (libjava_arguments): Build with `-no-install'
when $mode == "link".
From-SVN: r42928
2001-06-06 02:53:52 +00:00
Martin Kahlert
c90efa7a1c
natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors table index is 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-05 10:46:36 +01:00
Tom Tromey
0f2257011a
PublicKey.java: Extend Key.
...
* java/security/PublicKey.java: Extend Key.
* java/security/PrivateKey.java: Extend Key.
From-SVN: r42886
2001-06-04 22:55:49 +00:00
Anthony Green
20f914dc05
!defined(USE_LTDL) fix
...
From-SVN: r42813
2001-06-02 19:40:53 +00:00
Anthony Green
9f0fbbabfb
Remove libgcjdata hack. Fix jv-scan usage in dejagnu.
...
From-SVN: r42812
2001-06-02 19:13:52 +00:00
Anthony Green
87596d9c92
Fake a PASS for targets which don't support invocation.
...
From-SVN: r42792
2001-06-02 09:18:14 +00:00
Anthony Green
c8fb98139d
USE_LIBFFI change
...
From-SVN: r42791
2001-06-02 08:49:31 +00:00
Anthony Green
6a6a4abb1a
Check for sigaction.
...
From-SVN: r42790
2001-06-02 08:34:33 +00:00
Jeff Sturm
e2f3946854
natFile.cc (get_entry): Removed functions.
...
* 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-06-01 04:04:10 +00:00
Tom Tromey
66c8aed252
natFileDescriptorPosix.cc (open): Allocate buffer to correct size.
...
* java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
correct size.
(write): Loop until write completes. From Corey Minyard.
From-SVN: r42749
2001-05-31 17:33:05 +00:00
Laurent Guerby
916f3579cc
Rectangle2D.java: fix doc typo.
...
2001-05-29 Laurent Guerby <guerby@acm.org>
* java/awt/geom/Rectangle2D.java: fix doc typo.
From-SVN: r42746
2001-05-31 16:48:15 +00:00
Tom Tromey
5980a00aeb
DriverManager.java (getDrivers): Handle case where driver's class loader is null.
...
* java/sql/DriverManager.java (getDrivers): Handle case where
driver's class loader is null. From Corey Minyard.
From-SVN: r42745
2001-05-31 16:18:55 +00:00
Tom Tromey
1de16a5cb1
invokethrow.out: New file.
...
* libjava.lang/invokethrow.out: New file.
* libjava.lang/invokethrow.java: New file.
From-SVN: r42711
2001-05-30 15:23:23 +00:00
Tom Tromey
70cb702a96
* include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
...
From-SVN: r42694
2001-05-29 22:18:41 +00:00
Tom Tromey
eb019738e2
configure: Rebuilt.
...
* configure: Rebuilt.
* configure.in: Only add multilib support code if we just rebuilt
top-level Makefile.
From-SVN: r42693
2001-05-29 21:31:23 +00:00
Andrew Haley
c9bffcd53e
i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame pointer...
...
2001-05-29 Andrew Haley <aph@redhat.com>
* include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
pointer: the dwarf unwinder in libgcc will do everything that's
needed.
(HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
more than we absolutely need to.
* configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
* configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
Alpha.
(SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
"$libgcj_sjlj".
* configure: Rebuilt.
* include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
for Alpha.
(SIGNAL_HANDLER): Use siginfo style handler.
(INIT_SEGV): Likewise.
(INIT_FPE): Likewise.
* include/ppc-signal.h: Delete whole file.
From-SVN: r42691
2001-05-29 17:50:50 +00:00
Tom Tromey
cb894e07ec
natString.cc (init): Throw ArrayIndexOutOfBoundsException.
...
* java/lang/natString.cc (init): Throw
ArrayIndexOutOfBoundsException.
(getChars): Likewise.
(getBytes): Likewise.
(valueOf): Likewise.
From-SVN: r42531
2001-05-24 18:06:03 +00:00
Tom Tromey
cf6b8de459
configure.in: Only allow hash synchronization when POSIX threads are enabled.
...
* 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 18:03:47 +00:00
Tom Tromey
085a261966
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
From-SVN: r42521
2001-05-24 05:43:46 +00:00
Tom Tromey
4c6a2b018f
Revert patch of 2001-05-21:
...
* Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
(libgcj_la_LIBADD): Likewise.
(libgcjx_la_DEPENDENCIES): Removed x_nat_files.
(libgcjx_la_LIBADD): Likewise.
From-SVN: r42520
2001-05-24 05:41:53 +00:00
Tom Tromey
3610e0d548
[multiple changes]
...
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-24 05:40:37 +00:00
Joseph Myers
719f0fde70
jv-scan.c (version): Update copyright year.
...
gcc/java:
* jv-scan.c (version): Update copyright year.
libjava:
* gij.cc (version): Update copyright year.
From-SVN: r42505
2001-05-23 19:10:30 +01:00
Anthony Green
13094d1293
Fix cross builds.
...
From-SVN: r42497
2001-05-23 17:13:27 +00:00
Per Bothner
c93d7fae7b
Implement invocation interface; don't create new thread for main.
...
From-SVN: r42428
2001-05-21 23:47:48 -07:00
Per Bothner
57d02dd3e6
Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
...
* Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
(libgcj_la_LIBADD): Likewise.
(libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
From-SVN: r42424
2001-05-21 23:40:06 -07:00
Per Bothner
ef0a7b49a9
javaprims.h (_Jv_FormatInt): New declaration.
...
* 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-21 21:38:37 -07:00
Tom Tromey
8ffd89ad1b
* gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
...
From-SVN: r42405
2001-05-21 19:27:10 +00:00
Andrew Haley
01936f3a7d
dwarf2-signal.h: New file.
...
2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
* include/dwarf2-signal.h: New file.
* configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
* configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
* configure: Rebuilt.
From-SVN: r42400
2001-05-21 16:59:42 +00:00
Bryce McKinlay
1f4eb17d51
configure.in: Update boehm-gc include dir for new GC version.
...
* configure.in: Update boehm-gc include dir for new GC version.
* configure: Rebuilt.
* exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
extern "C" wrapper.
* boehm.cc: Update includes for new GC version. MAKE_PROC is now
GC_MAKE_PROC. mark_proc is now GC_mark_proc.
* posix-threads.cc: Only include <gc.h>. Don't need to wrap with
extern "C".
From-SVN: r42380
2001-05-21 09:37:04 +01:00
Alexandre Oliva
334564454e
ltconfig, [...]: Upgraded to libtool 1.4a 1.641.2.254.
...
* ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh,
ltcf-gcj.sh: Upgraded to libtool 1.4a 1.641.2.254. Rebuilt a number
of subdir/configure scripts to use the new libtool.m4.
From-SVN: r42351
2001-05-20 18:55:59 +00:00
Alexandre Petit-Bianco
ec54a908e5
posix-threads.h (_Jv_CondInit): 0' used in place of
NULL.'
...
2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
* include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
(_Jv_MutexInit): Likewise.
(http://gcc.gnu.org/ml/java-patches/2001-q2/msg00245.html )
From-SVN: r42303
2001-05-18 22:43:00 -07:00
Tom Tromey
63f36be6e7
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (awt_java_source_files): Added Polygon.java.
From-SVN: r42276
2001-05-18 19:22:05 +00:00
Bryce McKinlay
ca1906ff9a
[multiple changes]
...
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-18 07:29:11 +01:00
Per Bothner
b2040e7b55
* Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
...
From-SVN: r42207
2001-05-17 10:04:08 -07:00
Tom Tromey
26ec4f47ba
SimpleDateFormat.java (parse): Handle non-dst time zones.
...
* java/text/SimpleDateFormat.java (parse): Handle non-dst time
zones.
From-SVN: r42156
2001-05-16 15:34:46 +00:00
Tom Tromey
6f4226f843
GregorianCalendar.java (computeTime): Only call getTimeZone() once.
...
* java/util/GregorianCalendar.java (computeTime): Only call
getTimeZone() once.
From-SVN: r42121
2001-05-15 21:44:24 +00:00
Tom Tromey
127699902e
SimpleDateFormat.java (parse): Clear DST_OFFSET and ZONE_OFFSET just before computing the time.
...
* java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
ZONE_OFFSET just before computing the time.
From-SVN: r42076
2001-05-14 17:40:29 +00:00
Zack Weinberg
1f730ff7b6
except.c (choose_personality_routine): Export.
...
gcc/cp:
* except.c (choose_personality_routine): Export. Add
explanatory comment. Take an enum languages, not a boolean.
(initialize_handler_parm): Adjust to match.
* cp-tree.h: Prototype choose_personality_routine.
* lex.c (handle_pragma_java_exceptions): New function.
(init_cp_pragma): Register #pragma GCC java_exceptions.
gcc:
* extend.texi: Document #pragma GCC java_exceptions.
libjava:
* Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
* Makefile.in: Regenerate (by hand).
* include/jvm.h: Add #pragma GCC java_exceptions at top of file.
* doc/cni.sgml: Document #pragma GCC java_exceptions.
From-SVN: r42027
2001-05-13 01:28:18 +00:00
Richard Henderson
5a0bf1eed1
configure.in (ia64-*): Don't set SYSDEP_SOURCES.
...
* configure.in (ia64-*): Don't set SYSDEP_SOURCES.
* java/lang/natThrowable.cc: Don't use __ia64_backtrace.
From-SVN: r41984
2001-05-11 23:25:03 -07:00
Richard Henderson
5f2fa73083
exception.cc: Include unwind-pe.h.
...
* exception.cc: Include unwind-pe.h. Remove all pointer
encoding logic.
From-SVN: r41983
2001-05-11 23:17:31 -07:00
Tom Tromey
dac975d3d9
Makefile.in: Rebuilt.
...
* 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-11 01:03:45 +00:00
Tom Tromey
9622762678
[multiple changes]
...
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-10 18:13:17 +00:00
Bryce McKinlay
7026707d15
Class.h (_Jv_Self): New union type.
...
* 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-05-06 14:42:11 +01:00
Tom Tromey
8559523974
Thread_Wait_Interrupt.xfail: New file.
...
* libjava.lang/Thread_Wait_Interrupt.xfail: New file.
* libjava.lang/Thread_Wait_2.xfail: New file.
* libjava.lang/Thread_Wait.xfail: New file.
* libjava.lang/Thread_Sleep.xfail: New file.
* libjava.lang/Thread_Monitor.xfail: New file.
* libjava.lang/Thread_Join.xfail: New file.
* libjava.lang/Thread_Interrupt.xfail: New file.
* libjava.lang/Thread_Alive.xfail: New file.
* lib/libjava.exp (libjava_init): Set global
libjava_uses_threads.
(test_libjava): Document `need-threads' tag.
(test_libjava_from_source): handle need-threads tag.
(test_libjava_from_javac): Likewise.
From-SVN: r41840
2001-05-04 19:33:10 +00:00
Tom Tromey
d8ce02bcdc
* libjava.lang/err11.xfail: Removed.
...
From-SVN: r41817
2001-05-03 22:03:44 +00:00
Martin Kahlert
ecd554cd35
jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds checking.
...
2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
* jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
checking.
(_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
From-SVN: r41795
2001-05-03 16:56:38 +00:00
Andrew Haley
ba3c22ff88
Fix bad checkin.
...
From-SVN: r41793
2001-05-03 16:53:38 +00:00
Andrew Haley
57458d1c12
libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
...
2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
* libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
* configure.host (EXCEPTIONSPEC): New.
* configure.in (EXCEPTIONSPEC): New.
* configure: Rebuilt.
From-SVN: r41786
2001-05-03 12:54:10 +00:00
Bryce McKinlay
e6b952c23f
* doc/*.texi: Remove generated documentation.
...
From-SVN: r41778
2001-05-03 04:01:44 +01:00
Andrew Haley
e529c2c1c3
libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
...
2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
* libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
* configure.host (EXCEPTIONSPEC): New.
* configure.in (EXCEPTIONSPEC): New.
* configure: Rebuilt.
From-SVN: r41733
2001-05-01 17:45:11 +00:00
Matt Kraai
dad362764f
natFile.cc (performSetReadOnly): Fix #ifdef test.
...
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-30 23:09:39 +00:00
Zack Weinberg
ad34a822c1
* java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader): Use _Jv_Malloc.
...
From-SVN: r41651
2001-04-28 01:39:15 +00:00
Zack Weinberg
0539f1f709
prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
...
* prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
* posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
(_Jv_ThreadDestroyData): Use _Jv_Free.
From-SVN: r41650
2001-04-28 00:04:55 +00:00
Tom Tromey
55cc31c086
jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds checking.
...
* jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
checking.
(_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
From-SVN: r41634
2001-04-27 16:09:54 +00:00
Tom Tromey
09efa46f6a
jni.h (struct JNINativeInterface): Fixed types in Get/Set*ArrayRegion declarations.
...
2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
* include/jni.h (struct JNINativeInterface): Fixed types in
Get/Set*ArrayRegion declarations.
(class _Jv_JNIEnv): Likewise.
From-SVN: r41633
2001-04-27 16:09:10 +00:00
Tom Tromey
f24fd724c2
libjava.exp (libjava_init): Use UTF-8 encoding.
...
* lib/libjava.exp (libjava_init): Use UTF-8 encoding.
(test_libjava_from_javac): Likewise.
From-SVN: r41617
2001-04-27 00:56:16 +00:00
Alexandre Oliva
2d65a52ece
configure.in: Obtain THREADS with `gcc -v'.
...
* configure.in: Obtain THREADS with `gcc -v'.
* configure: Rebuilt.
From-SVN: r41571
2001-04-26 04:29:57 +00:00
Bryce McKinlay
0cd99be737
re PR libgcj/2237 (serialization doesn't throw exception on failure)
...
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-26 03:02:05 +01:00
Kaveh R. Ghazi
9e65a913b6
natInetAddress.cc (java::net::InetAddress::aton): Wrap use of inet_pton in HAVE_INET6.
...
* java/net/natInetAddress.cc (java::net::InetAddress::aton):
Wrap use of inet_pton in HAVE_INET6.
From-SVN: r41547
2001-04-25 20:27:06 +00:00
Bryce McKinlay
889a80aa95
Forgot this file on last commit.
...
From-SVN: r41544
2001-04-25 16:48:05 +01:00
Bryce McKinlay
28f7d9d05a
decl.c (init_decl_processing): Add new class "protectionDomain" field.
...
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-25 16:45:15 +01:00
Alexandre Oliva
5ec89e892c
configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS for libtool tests.
...
* configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
for libtool tests. Pre-create gnu/classpath/Configuration.java.
* configure: Rebuilt.
From-SVN: r41522
2001-04-24 11:27:20 +00:00
Tom Tromey
efc150d58b
Makefile.in: Rebuilt.
...
* 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-22 17:01:18 +00:00
Tom Tromey
760903c056
Makefile.in: Rebuilt.
...
* 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-22 03:05:39 +00:00
Tom Tromey
f825e235a8
List.java: Wrote.
...
* java/awt/List.java: Wrote.
* java/awt/Dialog.java: Wrote.
From-SVN: r41476
2001-04-21 02:48:35 +00:00
Warren Levy
a6f5b6f958
natSystem.cc (getSystemTimeZone): Adjust for DST.
...
* 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-20 09:43:52 +00:00
Bryce McKinlay
52c2897732
Makefile.am: Make a libtool convenience library.
...
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-12 10:32:50 +01:00
Per Bothner
ab9fa4b5d4
natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
...
* 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-10 15:46:11 -07:00
Tom Tromey
4f75c18024
testsuite: libjava: remove some xfail markers.
...
* libjava.lang/pr83.xfail: Removed.
* libjava.lang/Shazam.xfail: Removed.
* libjava.lang/PR162.xfail: Removed.
* libjava.compile/PR375.xfail: Removed.
* libjava.compile/PR208.xfail: Removed xfail-byte.
* libjava.compile/PR207.xfail: Removed xfail-byte.
From-SVN: r41220
2001-04-10 14:27:41 +00:00
Tom Tromey
693c414507
testsuite: libjava: remove some xfail markers.
...
* libjava.compile/weirddecl.xfail: Removed xfail-*.
* libjava.compile/PR374.xfail: Removed.
From-SVN: r41180
2001-04-07 20:00:50 +00:00
Tom Tromey
80a44e089f
jni.cc (wrap_value<jobject>, [...]): Removed.
...
* jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
(wrap_value<T*>): New specialization.
(_Jv_JNI_PopLocalFrame): Update env->locals.
From-SVN: r41157
2001-04-06 17:38:52 +00:00
Alexandre Petit-Bianco
b8136a1632
instinit2.out: Fixed.
...
2001-03-29 Alexandre Petit-Bianco <apbianco@redhat.com>
* libjava.lang/instinit2.out: Fixed.
(http://gcc.gnu.org/ml/gcc-patches/2001-04/msg00343.html )
From-SVN: r41132
2001-04-05 16:07:30 -07:00
Tom Tromey
cb77742606
* libtool-version: Updated current.
...
From-SVN: r41116
2001-04-05 15:12:41 +00:00
Andreas Jaeger
48f9396dd6
Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
...
2001-04-04 Andreas Jaeger <aj@suse.de>
* gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
* gcj/Makefile.in: Rebuilt.
* Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
* Makefile.in: Rebuilt.
* testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
* testsuite/Makefile.in: Rebuild.
* include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
* include/Makefile.in: Rebuild.
From-SVN: r41100
2001-04-04 23:38:53 +00:00
Zack Weinberg
b6dabe8938
libjava.exp: Correct typo...
...
* testsuite/lib/libjava.exp: Correct typo: 'output from source
compiled test', not 'execution from source compiled test'.
Use UNTESTED, not XFAIL, for tests which are not run because
they depend on a previous test which failed.
From-SVN: r41026
2001-04-02 23:36:26 +00:00
Richard Henderson
212a2676d3
configure.in (GCC_UNWIND_INCLUDE): Assume we're built within the same tree as gcc.
...
* configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
the same tree as gcc.
* configure: Rebuilt.
* exception.cc (_Jv_Throw): Clarify commentary.
From-SVN: r41025
2001-04-02 16:26:50 -07:00
Marcus G. Daniels
56f2b5bd76
jni.cc (wrap_value<jclass>): New specialization.
...
2001-04-02 Marcus G. Daniels <mgd@swarm.org>
* jni.cc (wrap_value<jclass>): New specialization.
From-SVN: r41021
2001-04-02 22:52:40 +00:00
Tom Tromey
0003efa0b3
PrintStream.java (out): Removed field.
...
* 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-02 21:16:38 +00:00
Torsten Rueger
5f82d4f21c
re PR libgcj/2429 (java.text.MessageFormat should usefully set text on 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-02 19:55:56 +00:00
Tom Tromey
5152512c2e
jni.cc (add_char): Correctly encode non-ascii characters.
...
* jni.cc (add_char): Correctly encode non-ascii characters.
(add_char): Define even when INTERPRETER not defined.
(mangled_name): Likewise.
(_Jv_GetJNIEnvNewFrame): Likewise.
(_Jv_LookupJNIMethod): Likewise.
From-SVN: r41010
2001-04-02 19:52:39 +00:00
Kevin B Hendricks
23ab86e452
* configure.host: Enable interpreter for PPC.
...
From-SVN: r41009
2001-04-02 19:51:40 +00:00
Bryce McKinlay
8f58baf480
natSystem.cc (init_properties): Revert yesterday's changes to "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
2001-04-02 06:23:10 +01:00
Per Bothner
a3b63299e6
natString.cc (intern): If string's data does not point to this String, make a fresh String that does.
...
* java/lang/natString.cc (intern): If string's data does not point to
this String, make a fresh String that does.
* java/lang/natString.cc (unintern): Replace by static function.
* java/lang/String.java (unintern): Remove method.
From-SVN: r40990
2001-04-01 14:54:10 -07:00
Per Bothner
f44b63ae02
DeflaterOutputStream.java (deflate): Loop while def.needsInput.
...
* DeflaterOutputStream.java (deflate): Loop while def.needsInput.
(finish): def.deflate needs to be called in a loop.
(inbuf, inbufLength): New private fields.
(write(int)): Use inbuf.
(write(byte[],int,int): Check if pending output in inbuf.
* ZipOutputStream.java: Don't use Deflater if stored.
Use a Checksum object directly, not via a CheckedOutputStream.
(uncompressed_size): New field,
(closeEntry): Only write data_directory if needed.
(write): If STORED, write directly.
Always update crc, and uncompressed_size.
(write_entry): Fix lots of protocol erors.
From-SVN: r40988
2001-04-01 14:28:45 -07:00
Bryce McKinlay
f404754042
1.3-Compliant Implementation of java.io.File.
...
* java/lang/natSystem.cc (init_properties): Get "file.separator",
"path.separator", and "java.io.tmpdir" from the File class, instead
of setting them explicitly.
* java/io/File.java: Do not canonicalize paths for security manager
checks. Call init_native() from static initializer. Do not pass path
argument to native methods. New native method declarations. Some
security manager checks moved to checkWrite().
(equals): Check file system case sensitivity and act appropriatly.
(hashCode): Likewise.
(isHidden): New method implemented.
(performList): Changed prototype. Now takes a class argument specifying
the class of the returned array: Strings or File objects. Also added
FileFilter argument.
(listFiles): New variants with "File" return type implemented.
(createTempFile): Use createNewFile(). Use maxPathLen.
(setReadOnly): New method implemented.
(listRoots): Likewise.
(compareTo): Likewise.
(setLastModified): Likewise.
(checkWrite): New method.
(setPath): Removed.
* java/io/natFile.cc: Various functions no longer take canonical path
argument.
(stat): Handle ISHIDDEN query.
(isAbsolute): Remove WIN32 cruft.
(performList): New arguments. Handle returning either File[] or
String[] arrays. Check with FileFilter or FilenameFilter arguments as
appropriate. Use an ArrayList, not a Vector, for the temporary list.
(performSetReadOnly): New method implemented.
(performListRoots): Likewise.
(performSetLastModified): Likewise.
(performCreate): Likewise.
(init_native): New initialization function.
* java/io/natFileWin32.cc: Various functions no longer take canonical
path argument.
(stat): Add FIXME about ISHIDDEN query.
(performList): New arguments. Handle returning either File[] or String[]
arrays. Check with FileFilter or FilenameFilter arguments as
appropriate. Use an ArrayList, not a Vector, for the temporary list.
(performSetReadOnly): New. Stubbed.
(performListRoots): Likewise.
(performSetLastModified): Likewise.
(performCreate): Likewise.
(init_native) New initialization function.
* configure.in: Check for utime() and chmod().
* configure: Rebuilt.
* include/config.h.in: Rebuilt.
Resolves PR libgcj/1759.
From-SVN: r40985
2001-04-01 12:16:40 +01:00
Richard Henderson
52a11cbfcf
IA-64 ABI Exception Handling.
...
From-SVN: r40924
2001-03-28 03:04:51 -08:00
Joerg Brunsmann
0d430c965d
InitialContext.java (init): Fix typo.
...
2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
* javax/naming/InitialContext.java (init): Fix typo.
(composeName): Remove unnecessary semicolon.
(addToEnvironment): Remove unnecessary semicolon.
(addToEnvironment): Use put() instead of add().
* javax/naming/InitialContext.java (InitialContext):
Make public.
(destroySubcontext): Method doesn't return a result.
* javax/naming/Context.java: Import java.util.Hashtable.
* javax/naming/Name.java: Import java.util.Enumeration.
From-SVN: r40888
2001-03-28 01:32:02 +01:00
Bryce McKinlay
29bb79cf26
Makefile.am (libffi_files): Use 'find' to pick up libffi libtool objects in subdirectories.
...
* Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
objects in subdirectories.
* Makefile.in: Rebuilt.
From-SVN: r40857
2001-03-27 01:18:30 +01:00
Richard Henderson
b3208f56cb
exception.cc (java_eh_info): Make value type jthrowable.
...
* exception.cc (java_eh_info): Make value type jthrowable.
(_Jv_type_matcher): Remove now unneeded cast.
(_Jv_Throw): Make argument type jthrowable. Munge name
for SJLJ_EXCEPTIONS here ...
* gcj/cni.h: ... not here.
(JvThrow): Remove.
* gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
* defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
java/lang/natClass.cc, java/lang/natClassLoader.cc,
java/lang/natDouble.cc, java/lang/natObject.cc,
java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
java/lang/natString.cc, java/lang/natSystem.cc,
java/lang/natThread.cc, java/lang/reflect/natArray.cc,
java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
java/util/zip/natInflater.cc:
Use throw, not JvThrow or _Jv_Throw.
From-SVN: r40838
2001-03-25 23:05:32 -08:00
Bryce McKinlay
f1cd4ab003
HashMap.java (HashMap): If 0 is given for initialCapacity paramater, bump it to 1.
...
2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
* java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
paramater, bump it to 1.
* java/util/Hashtable.java (Hashtable): Likewise.
From-SVN: r40812
2001-03-24 08:05:29 +00:00
Per Bothner
aff68f1cd9
Left out while checking in java/lang/natDouble.cc (parseDouble) change.
...
From-SVN: r40811
2001-03-23 20:00:30 -08:00
Per Bothner
3c45ffa514
natDouble.cc (parseDouble): Cannot use errno to check for errors...
...
* java/lang/natDouble.cc (parseDouble): Cannot use errno to
check for errors, since we don't want to throw exception on
overflow/underflow. Instead, trim whitespace, and then check that
_strtod_r uses up all the rest of the string.
From-SVN: r40800
2001-03-23 16:59:57 -08:00
Per Bothner
7a3155bef7
natClass.cc (_Jv_IsAssignableFrom): Checking the ancestors array is invalid for interfaces...
...
* java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
ancestors array is invalid for interfaces, so do that *after*
check that the target type is not an interface.
From-SVN: r40797
2001-03-23 16:21:24 -08:00
Jeff Sturm
b64295c4d3
prims.cc (_Jv_FindClassFromSignature): Check return of recursive call.
...
2000-03-23 Jeff Sturm <jsturm@one-point.com>
* prims.cc (_Jv_FindClassFromSignature): Check return of
recursive call. Do not abort on invalid signature; return NULL
instead.
From-SVN: r40787
2001-03-23 19:17:22 +00:00