Bryce McKinlay
107abb2f61
Eliminate use of C++ static constructors.
...
* interpret.cc: Remove static Utf8Consts. Use namespace gcj.
* jni.cc: Likewise.
* resolve.cc: Likewise.
* defineclass.cc: Likewise.
(_Jv_ClassReader::handleClassBegin): Synchronize call to
_Jv_RegisterClass.
* include/jvm.h (void_signature, clinit_name, init_name, finit_name):
Declare in namespace gcj.
* java/lang/Class.h (Class): Remove initialization for primitive
types.
(friend void _Jv_InitPrimClass): This is in prims.cc.
* prims.cc (_Jv_InitPrimClass): Do primitive type initialization
here instead.
(void_signature, clinit_name, init_name, finit_name): Define in
namespace gcj.
(_Jv_CreateJavaVM): Call _Jv_InitThreads, _Jv_InitGC, and
_Jv_InitializeSyncMutex from here. Initialize Utf8 constants.
Initialize primitive types.
* java/lang/natClassLoader.cc (_Jv_RegisterClasses): Don't call
initialization routines. Don't synchronize.
* java/lang/natRuntime.cc (_load): Synchronize on java.lang.Class
across dlopen call.
From-SVN: r46282
2001-10-16 09:35:17 +01:00
Bryce McKinlay
6fd617e3e1
* name-finder.cc (_Jv_name_finder::lookup): Check for NULL dli_sname.
...
From-SVN: r46280
2001-10-16 08:36:12 +01:00
Bryce McKinlay
41878ce27e
[multiple changes]
...
2001-10-15 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* java/util/HashMap.java (HashEntry.clone): Removed.
(HashMap(Map)): Use putAllInternal.
(clone): Likewise.
(putAllInternal): New method. Efficient counterpart to putAll which
does not call put().
* java/util/LinkedHashMap.java (rethread): Removed.
(putAllInternal): New method. Clear "head" and "tail".
(addEntry): New argument "callRemove". Don't call removeEldestEntry()
if callRemove == false.
* Makefile.am: Add new classes RandomAccess and LinkedHashMap.
* Makefile.in: Rebuilt.
2001-10-15 Eric Blake <ebb9@email.byu.edu>
* java/util/Collection.java: Updated javadoc.
* java/util/Comparator.java: Updated javadoc.
* java/util/Enumeration.java: Updated javadoc.
* java/util/Iterator.java: Updated javadoc.
* java/util/List.java: Updated javadoc.
* java/util/ListIterator.java: Updated javadoc.
* java/util/Map.java: Updated javadoc.
* java/util/RandomAccess.java: New file.
* java/util/Set.java: Updated javadoc.
* java/util/SortedMap.java: Updated javadoc.
* java/util/SortedSet.java: Updated javadoc.
From-SVN: r46277
2001-10-16 06:47:01 +01:00
Tom Tromey
0e91d38470
AccessibleObject.java (checkPermission): Implemented.
...
* java/lang/reflect/AccessibleObject.java (checkPermission):
Implemented.
Updated copyright information.
From-SVN: r46272
2001-10-15 22:45:03 +00:00
Hans Boehm
3a8da0244a
natObject.cc (heavy_lock): Moved fields old_client_data, old_finalization_proc near beginning.
...
2001-10-15 Hans Boehm <Hans_Boehm@hp.com>
* java/lang/natObject.cc (heavy_lock): Moved fields
old_client_data, old_finalization_proc near beginning.
(heavy_lock_finalization_proc): Now inline; changed type of
argument.
(JV_SYNC_TABLE_SZ): Now 2048.
(mp): New global.
(spin): `mp' now global.
(heavy_lock_obj_finalization_proc): Updated to correctly handle
heavy lock finalization.
(remove_all_heavy): New function.
(maybe_remove_all_heavy): Likewise.
(_Jv_MonitorEnter): Throw exception if object is NULL.
(_Jv_MonitorExit): Likewise. Also, clear long lists of unlocked
heavy locks.
* include/jvm.h (_Jv_AllocTraceTwo): Declare.
* nogc.cc (_Jv_AllocTraceTwo): New function.
* boehm.cc (trace_two_vtable): New global.
(_Jv_AllocTraceTwo): New function.
From-SVN: r46271
2001-10-15 22:42:42 +00:00
Tom Tromey
7d6fd8fd4c
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (awt_java_source_files): Added new file.
* java/beans/AppletInitializer.java: New file.
From-SVN: r46267
2001-10-15 17:46:06 +00:00
Tom Tromey
e94f5bac70
SocketPermission.java (hostport, actions): Now private.
...
* java/net/SocketPermission.java (hostport, actions): Now
private.
From-SVN: r46266
2001-10-15 16:32:51 +00:00
Mark Wielaard
06c0908ba6
Double.java: Partial merge with Classpath
...
* java/lang/Double.java: Partial merge with Classpath
(TYPE): initialized through VMClassLoader.getPrimitiveClass()
(value): made final
(static): new static block to load native libary (not used in libgcj)
(Double (String)): call parseDouble()
(byteValue): removed, already defined in superclass Number
(shortValue): likewise
(valueOf (String)): call new Double(String) directly
(compare (double,double)): new 1.4 method
(compareTo (Double)): call new compare(double,double) method
(initIDs): new private method (not used in libgcj)
* java/lang/Float.java: Partial merge with Classpath
(TYPE): initialized through VMClassLoader.getPrimitiveClass()
(value): made final
(static): new static block to load native libary (not used in libgcj)
(Float (String)): call parseFloat()
(byteValue): removed, already defined in superclass Number
(shortValue): likewise
(valueOf (String)): call new Float(String) directly
(compare (float,float)): new 1.4 method
(compareTo (Float)): call new compare(double,double) method
From-SVN: r46263
2001-10-15 06:31:13 +00:00
Tom Tromey
48d24deb4e
* java/lang/SecurityManager.java (SecurityManager): Now public.
...
From-SVN: r46247
2001-10-13 23:23:50 +00:00
Tom Tromey
41bd2b1cc2
AccessController.java (checkPermission): Now throws AccessControlException.
...
* java/security/AccessController.java (checkPermission): Now
throws AccessControlException.
* java/security/AllPermission.java: Class now final.
* java/security/Permission.java (getName): Now final.
(name): Now private.
(equals): New abstract method.
* java/security/PermissionCollection.java (linesep): Now private.
* java/security/Permissions.java: Class now final.
* java/security/Security.java (Security): New private
constructor.
* java/security/UnresolvedPermission.java: Import
java.security.cert.Certificate. Class now final.
* java/security/acl/Group.java: Now extends Principal.
(isMember): Added Principal argument.
* java/security/spec/X509EncodedKeySpec.java (getFormat): Now
final.
* java/security/spec/PKCS8EncodedKeySpec.java (getFormat): Now
final.
From-SVN: r46246
2001-10-13 23:21:07 +00:00
Tom Tromey
42273f3225
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (rmi_java_source_files): Added new files.
* gnu/java/rmi/rmic/RMIC.java (compile): Uncommented; fixed to use
new Compiler class.
* gnu/java/rmi/rmic/Makefile.am (EXTRA_DIST): Updated.
* gnu/java/rmi/rmic/Compile_gcj.java: New file.
* gnu/java/rmi/rmic/CompilerProcess.java: New file.
* gnu/java/rmi/rmic/Compiler.java: New file.
From-SVN: r46235
2001-10-12 22:04:07 +00:00
Tom Tromey
9d577a61fd
configure: Rebuilt.
...
* configure: Rebuilt.
* configure.in: Recognize --disable-java-awt.
From-SVN: r46186
2001-10-11 15:52:39 +00:00
Tom Tromey
eeedeb5a17
natFinalizerThread.cc: New file.
...
* gnu/gcj/runtime/natFinalizerThread.cc: New file.
* java/lang/natRuntime.cc: Include FinalizerThread.h.
(runFinalization): Call finalizerReady.
* nogc.cc (_Jv_GCInitializeFinalizers): New function.
* prims.cc: Include VirtualMachineError.h, FinalizerThread.h.
(_Jv_CreateJavaVM): Start the finalizer thread.
* no-threads.cc: Include InternalError.h.
(_Jv_ThreadStart): Throw InternalError.
(_Jv_ThreadInitData): Don't throw error if this is not the first
thread.
* Makefile.in: Rebuilt.
* Makefile.am (ordinary_java_source_files): Added
FinalizerThread.java.
(nat_source_files): Added natFinalizerThread.cc.
* include/jvm.h (_Jv_GCInitializeFinalizers): Declare.
* boehm.cc (_Jv_GCInitializeFinalizers): New function.
* gnu/gcj/runtime/FirstThread.java (run): Start finalizer thread.
* gnu/gcj/runtime/FinalizerThread.java: New file.
From-SVN: r46163
2001-10-10 22:25:43 +00:00
Per Bothner
d1d8ed9877
strtod.c (_strtod_r): Logic to check for missing digits after exponent had 'else' attached to wrong 'if'.
...
* strtod.c (_strtod_r): Logic to check for missing digits
after exponent had 'else' attached to wrong 'if'.
From-SVN: r46132
2001-10-09 15:54:26 -07:00
Mark Wielaard
481aae6fc2
* java/net/SocketImpl.java: Merge with Classpath
...
From-SVN: r46129
2001-10-09 21:44:54 +00:00
Mark Wielaard
0d47f08629
* java/net/DatagramSocketImpl.java: Merge with Classpath
...
From-SVN: r46127
2001-10-09 17:40:13 +00:00
Mark Wielaard
0bdf7869bf
URLDecoder.java: Remerge with Classpath
...
* java/net/URLDecoder.java: Remerge with Classpath
* java/net/URLEncoder.java: Merge with Classpath
From-SVN: r46098
2001-10-08 21:03:34 +00:00
Tom Tromey
d281f2a236
re PR libgcj/4481 (java.io.File.getParent not working properly)
...
Fix for PR libgcj/4481:
* java/io/File.java (getParent): Handle case where path is "/".
(normalizePath): Use correct string for UNC leader.
From-SVN: r46093
2001-10-08 20:42:13 +00:00
Mark Wielaard
11064ef947
* java/io/BufferedInputStream.java: Merge with Classpath
...
From-SVN: r46086
2001-10-08 18:53:49 +00:00
Joseph Myers
cc712abf04
acinclude.m4: Fix spelling error of "separate" as "seperate".
...
config:
* acinclude.m4: Fix spelling error of "separate" as "seperate".
gcc:
* ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
genmultilib, toplev.c: Fix spelling errors of "separate" as
"seperate", and corresponding spelling errors of related words.
gcc/ada:
* 5oosinte.adb: Fix spelling error of "separate" as "seperate".
gcc/testsuite:
* gcc.c-torture/unsorted/unsorted.exp, lib/file-format.exp: Fix
spelling errors of "separate" as "seperate".
libffi:
* src/x86/ffi.c: Fix spelling error of "separate" as "seperate".
libjava:
* defineclass.cc, java/awt/image/ColorModel.java,
java/awt/image/SampleModel.java, java/lang/Package.java,
java/security/cert/X509Extension.java: Fix spelling errors of
"separate" as "seperate", and corresponding spelling errors of
related words.
libstdc++-v3:
* docs/html/22_locale/locale.html, docs/html/faq/index.html: Fix
spelling errors of "separate" as "seperate", and corresponding
spelling errors of related words.
* docs/html/faq/index.txt: Regenerate.
From-SVN: r46063
2001-10-07 19:02:46 +01:00
Tom Tromey
cb9ad228b6
DecimalFormat.java (format): Use localized minus sign when generating exponent; never use `+'.
...
* java/text/DecimalFormat.java (format): Use localized minus sign
when generating exponent; never use `+'. Use floor to compute
exponent.
From-SVN: r46045
2001-10-05 21:25:23 +00:00
Mark Wielaard
2600825ee1
Adler32.java: Merge with Classpath
...
* java/util/zip/Adler32.java: Merge with Classpath
* java/util/zip/CRC32.java: Ditto
* java/util/zip/Checksum.java: Ditto
* java/util/zip/DataFormatException.java: Ditto
* java/util/zip/ZipException.java: Ditto
From-SVN: r46035
2001-10-05 15:21:35 +00:00
Martin Kahlert
e62bad3dc9
jni.cc (_Jv_JNI_DeleteLocalRef): Use correct frame size
...
2001-10-04 Martin Kahlert <martin.kahlert@infineon.com>
* jni.cc (_Jv_JNI_DeleteLocalRef): Use correct frame size
From-SVN: r46034
2001-10-05 14:23:06 +00:00
Mark Wielaard
ffb0e73a97
* java/lang/reflect/Modifier.java: Merge with Classpath
...
From-SVN: r46019
2001-10-05 00:16:03 +00:00
Mark Wielaard
ce0d5fce2b
SequenceInputStream.java: Merge with Classpath
...
* java/io/SequenceInputStream.java: Merge with Classpath
* java/io/StringBufferInputStream.java: Ditto
* java/util/Collections.java: Remerge with Classpath
From-SVN: r46005
2001-10-04 05:34:47 +00:00
Tom Tromey
b52a8930ff
natReference.cc (add_to_hash): Set n->next before setting *link.
...
* java/lang/ref/natReference.cc (add_to_hash): Set n->next before
setting *link.
From-SVN: r45996
2001-10-03 16:47:02 +00:00
Bryce McKinlay
359627b597
* gij.cc (version): Use GCJVERSION.
...
From-SVN: r45993
2001-10-03 12:42:28 +01:00
Bryce McKinlay
8b6013ad43
* resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.
...
From-SVN: r45988
2001-10-03 08:54:34 +01:00
Mark Wielaard
d352477d45
Makefile.am (core_java_source_files): add InheritableThreadLocal
...
* Makefile.am (core_java_source_files): add InheritableThreadLocal
* Makefile.in: regenerate
* gcj/javaprims.h: ditto
* java/lang/InheritableThreadLocal.java: new class from Classpath
* java/lang/Thread.java Thread (Thread, ThreadGroup, Runnable, String):
call InheritableThreadLocal.newChildThread()
From-SVN: r45979
2001-10-02 22:49:59 +00:00
Mark Wielaard
627a8b878e
Makefile.am: Add new classes
...
* Makefile.am: Add new classes
(core_java_source_files): CharSequence
(ordinary_java_source_files): Authenticator, PasswordAuthentication
* Makefile.in: regenerate
* gcj/javaprims.h: ditto
* java/lang/CharSequence: new class from Classpath
* java/lang/String.java: implements CharSequence
(subSequence (int,int)): new method
* java/lang/SubString.java: implements CharSequence
(subSequence (int,int)): new method
remerge comments with Classpath
* java/net/Authenticator.java: new class from Classpath
* java/net/PasswordAuthentication.java: ditto
From-SVN: r45969
2001-10-02 20:59:31 +00:00
Tom Tromey
2b3d3db68d
javaprims.h: Rebuilt class list.
...
* gcj/javaprims.h: Rebuilt class list.
* boehm.cc (_Jv_GCRegisterDisappearingLink): New function.
(_Jv_GCCanReclaimSoftReference): New function.
* include/jvm.h (_Jv_GCRegisterDisappearingLink): Declare.
(_Jv_GCCanReclaimSoftReference): Declare.
* java/lang/ref/Reference.java (referent): Now a RawData.
(create): Renamed from `created'. Added object argument.
(Reference): Don't initialize `referent' here.
* Makefile.in: Rebuilt.
* Makefile.am (nat_source_files): Added new file.
* java/lang/ref/natReference.cc: New file.
From-SVN: r45958
2001-10-02 14:31:47 +00:00
Tom Tromey
62a040818a
prims.cc (_Jv_NewMultiArrayUnchecked): New method.
...
* prims.cc (_Jv_NewMultiArrayUnchecked): New method.
(_Jv_NewMultiArray): Use it. Check each array dimension.
(_Jv_NewMultiArray): Likewise.
* java/lang/reflect/natMethod.cc (can_widen): Nothing promotes to
`char'.
* java/lang/reflect/natArray.cc (newInstance): Throw
IllegalArgumentException if there are no dimensions.
From-SVN: r45951
2001-10-02 13:44:32 +00:00
Mark Wielaard
477946a63d
FileWriter.java: Merge with Classpath.
...
* java/io/FileWriter.java: Merge with Classpath.
* java/io/FilterInputStream.java: Ditto.
(mark): no longer synchronized
(reset): Likewise
* java/io/FilterOutputStream.java: Merge with Classpath.
* java/io/FilterReader.java: Ditto.
(mark): no longer synchronized
(reset): Likewise
* java/io/FilterWriter.java: Merge with Classpath.
* java/io/Writer.java: Ditto.
* java/lang/Compiler.java: Ditto.
* java/lang/Process.java: Ditto.
* java/lang/Void.java: Ditto.
* java/net/ContentHandler.java: Ditto.
* java/net/DatagramPacket.java: Ditto.
* java/net/MulticastSocket.java: Merge comments with Classpath.
From-SVN: r45930
2001-10-01 18:24:54 +00:00
Mark Wielaard
cfcdbe5480
DataInput.java: Merge with Classpath.
...
* java/io/DataInput.java: Merge with Classpath.
* java/io/DataOutput.java: Idem.
* java/io/FilenameFilter.java: Idem.
* java/io/Serializable.java: Idem.
* java/lang/Cloneable.java: Idem.
* java/lang/Comparable.java: Idem.
* java/lang/Runnable.java: Idem.
* java/lang/reflect/Member.java: Idem.
* java/net/ContentHandlerFactory.java: Idem.
* java/net/FileNameMap.java: Idem.
* java/net/SocketImplFactory.java: Idem.
* java/net/SocketOptions.java: Idem.
* java/net/URLStreamHandlerFactory.java: Idem.
From-SVN: r45910
2001-09-30 18:04:38 +00:00
Bryce McKinlay
218e1e912d
re PR libgcj/4383 (file: protocol not supported in URLConnection?)
...
PR libgcj/4383
* gnu/gcj/protocol/file/Connection.java (connect): Throw
FileNotFoundException if appropriate.
* gnu/gcj/protocol/file/Handler.java (openConnection): Throw an
IOException if we got a file: url with a hostname. Comment out protocol
switch to ftp for now.
* java/net/URL.java (URL): Include protocol name in exception
message
when handler can't be found.
From-SVN: r45898
2001-09-30 08:52:16 +01:00
Bryce McKinlay
8444766847
natClass.cc (_Jv_IsAssignableFrom): Handle the case of an uninitialized target class.
...
* java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of
an uninitialized target class.
From-SVN: r45893
2001-09-30 03:41:54 +01:00
Per Bothner
8107bcf9f3
SharedLibLoader.java: New class.
...
* gnu/gcj/runtime/SharedLibLoader.java: New class.
* gnu/gcj/runtime/natSharedLibLoader.cc: Native methods.
* Makefile.am: Update accordingly.
* configure.in: Add AC_CHECK_LIB for dlopen.
* include/config.h.in: Add HAVE_DLOPEN.
From-SVN: r45885
2001-09-29 12:16:27 -07:00
Jeff Sturm
fad0903846
Makefile.am (libgcj_la_LDFLAGS): Added $(GCLIBS), $(ZLIBS).
...
* Makefile.am (libgcj_la_LDFLAGS): Added $(GCLIBS), $(ZLIBS).
* Makefile.in: Rebuilt.
From-SVN: r45873
2001-09-29 04:07:28 +00:00
Alexandre Petit-Bianco
5952078834
final_initialization_in_ctor.java: New file
...
2001-09-27 Alexandre Petit-Bianco <apbianco@redhat.com>
* libjava.compile/final_initialization_in_ctor.java: New file
( http://gcc.gnu.org/ml/gcc-patches/2001-09/msg01160.html )
From-SVN: r45843
2001-09-27 12:17:16 -07:00
Tom Tromey
0caade1b54
IdentityHashMap.java (containsKey): Use getHash.
...
* java/util/IdentityHashMap.java (containsKey): Use getHash.
(get): Likewise.
(put): Likewise.
(remove): Likewise.
(getHash): New method.
(tombstone, emptyslot): Now static final.
(put): Correctly determine when to rehash, and correctly rehash.
(containsKey, remove): Test against table length with `>='.
From-SVN: r45841
2001-09-27 16:49:13 +00:00
Tom Tromey
03219cb5d9
Configuration.java.in (INIT_LOAD_LIBRARY): New constant.
...
* gnu/classpath/Configuration.java.in (INIT_LOAD_LIBRARY): New
constant.
* java/io/StreamTokenizer.java, java/util/ResourceBundle.java:
Re-merged with Classpath.
From-SVN: r45835
2001-09-27 00:24:52 +00:00
Tom Tromey
1685382e99
DataInputStream.java (readChar): Use readFully.
...
* java/io/DataInputStream.java (readChar): Use readFully.
(readInt): Likewise.
(readLong): Likewise.
(readShort): Likewise.
(readUnsignedShort): Likewise.
From-SVN: r45834
2001-09-26 22:49:02 +00:00
Bryce McKinlay
b056c22c8e
* java/security/cert/X509Extension.java: Merge from classpath.
...
From-SVN: r45798
2001-09-25 05:11:21 +01:00
Bryce McKinlay
4f7279ab3e
PosixProcess.java (exitValue): Implement here.
...
* java/lang/PosixProcess.java (exitValue): Implement here. Throw
IllegalThreadStateException if process hasn't exited yet.
* java/lang/natPosixProcess.cc (exitValue): Removed.
(waitFor): Only check thread interrupted status if waitpid()
returned an error. Use WIFEXITED and WEXITSTATUS to process process's
exit value.
From-SVN: r45766
2001-09-24 05:51:50 +01:00
Anthony Green
2155677ceb
old fix
...
From-SVN: r45759
2001-09-23 01:08:05 +00:00
Anthony Green
8eba5a2b7f
misc fixes
...
From-SVN: r45758
2001-09-23 01:05:55 +00:00
Richard Henderson
f5ddf15465
jvm.h (_Jv_VTable): Handle function descriptors for ia64...
...
* include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
add get_method, set_method, vtable_elt_size, new_vtable.
(_Jv_ArrayVTable): Derive from _Jv_VTable.
* resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
* interpret.cc (_Jv_InterpMethod::continue1): Likewise.
* java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.
From-SVN: r45734
2001-09-21 09:59:12 -07:00
Richard Henderson
01c62aea29
no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
...
* no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
* java/lang/mprec.c (lo0bits): Fix paren typo.
From-SVN: r45724
2001-09-21 00:46:32 -07:00
Bryce McKinlay
f449e8853b
posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of blocking IO via pthread_kill().
...
* posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of
blocking IO via pthread_kill().
* java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread
interrupted status flag only if ::write returned an error.
(write (jbyteArray, jint, jint): Likewise.
(read (jint)): Likewise.
(read (jbyteArray, jint, jint): Likewise.
From-SVN: r45719
2001-09-21 05:23:31 +01:00
Anthony Green
bb7fd9624b
Fix null pointer bug.
...
From-SVN: r45692
2001-09-19 18:28:59 +00:00
Andreas Jaeger
63dc70a159
* jni.cc (array_from_valist): Use promoted types for va_arg.
...
From-SVN: r45650
2001-09-17 07:08:10 +02:00
Anthony Green
214bcb99a1
Add support for iso8859_1.
...
From-SVN: r45649
2001-09-17 02:28:53 +00:00
Tom Tromey
9a5257d5e9
TimeZone.java: Updated list of timezones from Classpath.
...
* java/util/TimeZone.java: Updated list of timezones from
Classpath.
From-SVN: r45622
2001-09-15 01:22:39 +00:00
Tom Tromey
6d8b8de30f
CloneNotSupportedException.java: Re-merged with Classpath.
...
* java/lang/CloneNotSupportedException.java: Re-merged with
Classpath.
From-SVN: r45599
2001-09-14 16:19:30 +00:00
Bryce McKinlay
6a3d403114
Hashtable.java (Enumerator): Ensure that if hasMoreElements() returns true...
...
* java/util/Hashtable.java (Enumerator): Ensure that if
hasMoreElements() returns true, nextElement() will always return
something even if the table has been modified.
From-SVN: r45584
2001-09-14 00:20:19 +01:00
Bryce McKinlay
7364d5f851
File.java (normalizePath): Use equals() not '==' for string comparison.
...
* java/io/File.java (normalizePath): Use equals() not '==' for string
comparison.
From-SVN: r45583
2001-09-14 00:18:07 +01:00
Tom Tromey
3642e753f3
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (class-check): New target.
From-SVN: r45562
2001-09-12 15:13:32 +00:00
Tom Tromey
45571704cf
* java/io/File.java (toURL): Use getAbsolutePath and `file://'.
...
From-SVN: r45556
2001-09-12 04:28:32 +00:00
Tom Tromey
fe5de1176e
Properties.java (load): Correctly read \u sequences.
...
* java/util/Properties.java (load): Correctly read \u sequences.
Report from Anthony Green.
From-SVN: r45532
2001-09-11 03:13:07 +00:00
Manfred Hollstein
1603cd96e3
configure.in (LIBFFIINCS): Quote uses of $(top_srcdir) and $(MULTIBUILDTOP).
...
* configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
and $(MULTIBUILDTOP).
* configure: Re-generate.
From-SVN: r45515
2001-09-10 18:26:48 +00:00
Bryce McKinlay
7866a458e2
jvm.h (_Jv_AllocRawObj): New prototype.
...
* include/jvm.h (_Jv_AllocRawObj): New prototype.
* boehm.cc (_Jv_AllocRawObj): Implement.
* nogc.cc (_Jv_AllocRawObj): Likewise.
* exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
From-SVN: r45497
2001-09-10 02:21:08 +01:00
Anthony Green
9978052974
ResourceBundle fixes
...
From-SVN: r45472
2001-09-07 18:14:20 +00:00
Tom Tromey
89066f10f5
RuleBasedCollator.java (clone): Rewrote.
...
* java/text/RuleBasedCollator.java (clone): Rewrote.
(RuleBasedCollator(RuleBasedCollator)): Removed.
* java/text/MessageFormat.java: Re-merged from Classpath.
* java/text/DecimalFormat.java: Re-merged from Classpath.
From-SVN: r45458
2001-09-07 00:15:47 +00:00
Anthony Green
a11e2c2279
jvm.h: Declare _Jv_RegisterResource.
...
* include/jvm.h: Declare _Jv_RegisterResource.
* gnu/gcj/Core.java, gnu/gcj/natCore.cc,
gnu/gcj/protocol/core/Connection.java,
gnu/gcj/protocol/core/Handler.java,
gnu/gcj/protocol/core/CoreInputStream.java,
gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
* java/net/URL.java (setURLStreamHandler): Use
gnu.gcj.protocol.core.Handler for the core protocol.
* gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
end of java.class.path.
* Makefile.am (ordinary_java_source_files): Add new java files.
(nat_source_files): Add new native code files.
* Makefile.in: Rebuilt.
From-SVN: r45450
2001-09-06 22:32:54 +00:00
Tom Tromey
d70dd6c835
* java/util/Properties.java: Re-merged from Classpath.
...
From-SVN: r45442
2001-09-06 17:16:09 +00:00
Tom Tromey
7dcc5966f0
From Eric Blake, via Classpath:
...
* java/lang/String.java (CaseInsensitiveComparator): New class.
(CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
From-SVN: r45425
2001-09-05 19:32:57 +00:00
Tom Tromey
4d9efc41d4
* java/util/Date.java: Re-merged with Classpath.
...
From-SVN: r45421
2001-09-05 18:10:47 +00:00
Tom Tromey
14cb2541d9
* java/text/DateFormatSymbols.java: Re-merged with Classpath.
...
From-SVN: r45420
2001-09-05 17:56:46 +00:00
Corey Minyard
c946ec44f8
natClassLoader.cc: Include VirtualMachineError.h
...
2001-09-05 Corey Minyard <minyard@acm.org>
Tom Tromey <tromey@redhat.com>
* java/lang/natClassLoader.cc: Include VirtualMachineError.h
(_Jv_RegisterClassHookDefault): Throw error if a class is
registered twice.
Co-Authored-By: Tom Tromey <tromey@redhat.com>
From-SVN: r45418
2001-09-05 17:48:18 +00:00
Tom Tromey
c1a13c5f88
natSystem.cc (init_properties): Default locale is en_US, not just en.
...
* java/lang/natSystem.cc (init_properties): Default locale is
en_US, not just en.
From-SVN: r45417
2001-09-05 17:11:57 +00:00
Bryce McKinlay
d9ef6ef7d9
MessageFormat.java (setLocale): Don't catch ParseException here, DecimalFormat.applyPattern() does not throw it.
...
* java/text/MessageFormat.java (setLocale): Don't catch ParseException
here, DecimalFormat.applyPattern() does not throw it.
From-SVN: r45398
2001-09-05 08:26:33 +01:00
Tom Tromey
ef671f4175
AbstractMap.java: Re-merged with Classpath.
...
* java/util/AbstractMap.java: Re-merged with Classpath.
* java/util/IdentityHashMap.java: Re-merged with Classpath.
From-SVN: r45391
2001-09-05 00:14:15 +00:00
Tom Tromey
a1f4e5ed0a
SimpleDateFormat.java: Re-merged with Classpath.
...
* java/text/SimpleDateFormat.java: Re-merged with Classpath.
* gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
gnu/gcj/text/LocaleData_en_US.java: Removed.
* java/text/DateFormatSymbols.java (clone): Use Classpath
implementation.
(equals): Simplified.
(DateFormatSymbols): Look in gnu.java.locale for information.
(DateFormatSymbols(DateFormatSymbols)): Removed.
(safeGetResource): Removed.
(DateFormatSymbols): Throws MissingResourceException.
(ampmsDefault, erasDefault, localPatternCharsDefault,
monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
weekdaysDefault, zoneStringsDefault): Removed.
* java/text/Collator.java (getAvailableLocales): Use modified
Classpath implementation.
(getInstance): Look in gnu.java.locale for information.
(clone): Rewrote.
* java/text/MessageFormat.java: Reindented.
(clone): Rewrote.
* java/text/FieldPosition.java: Merged with Classpath.
* java/text/ParsePosition.java: Merged with Classpath.
* java/text/Format.java: Merged with Classpath.
* java/text/StringCharacterIterator.java
(StringCharacterIterator(StringCharacterIterator,int,int)): New
constructor from Classpath.
* java/text/Annotation.java,
java/text/AttributedCharacterIterator.java,
java/text/AttributedString.java,
java/text/AttributedStringIterator.java: New from Classpath.
* java/text/CharacterIterator.java: Copied from Classpath.
* java/text/ChoiceFormat.java: Reindented.
(clone): Removed.
* gnu/java/text/BaseBreakIterator.java,
gnu/java/text/CharacterBreakIterator.java,
gnu/java/text/LineBreakIterator.java,
gnu/java/text/LocaleData_en.java,
gnu/java/text/LocaleData_en_US.java,
gnu/java/text/SentenceBreakIterator.java,
gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
* gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
character.
* java/text/BreakIterator.java (getAvailableLocales): Use
Classpath implementation.
(getInstance): Look in gnu.java.locale for information.
(getCharacterInstance, getLineInstance, getSentenceInstance,
getWordInstance): Look in gnu.java.text for implementations.
* java/text/DecimalFormatSymbols.java: Reindented
(clone): Use Classpath implementation.
(DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
(DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
information.
* java/text/DateFormat.java: Merged with Classpath.
(getAvailableLocales): Use Classpath implementation.
(format(Object,StringBuffer,FieldPosition)): Minor cleanup.
(computeInstance): Look in gnu.java.locale for information.
* java/text/NumberFormat.java: Reindented.
(computeInstance): Look in gnu.java.locale for information.
(getAvailableLocales): Use implementation from Classpath.
(setMaximumIntegerDigits): Likewise.
(setMinimumIntegerDigits): Likewise.
(setMaximumFractionDigits): Likewise.
(clone): Removed.
* java/text/DecimalFormat.java: Reindented.
* gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
* gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
* Makefile.in: Rebuilt.
* Makefile.am (ordinary_java_source_files): Added all new files.
(ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
* java/security/spec/AlgorithmParameterSpec.java,
java/security/spec/KeySpec.java: Re-merged with Classpath.
From-SVN: r45390
2001-09-05 00:00:55 +00:00
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