Joseph Myers
18e1f2bd67
HACKING, [...]: Fix spelling errors.
...
* HACKING, gnu/gcj/xlib/Pixmap.java, gnu/gcj/xlib/XException.java,
gnu/java/rmi/rmic/RMIC.java, java/awt/Window.java,
java/awt/AWTEvent.java, java/io/ByteArrayOutputStream.java,
java/io/CharConversionException.java,
java/io/PipedInputStream.java, java/io/PipedReader.java,
java/io/PrintWriter.java, java/io/WriteAbortedException.java,
java/io/natFileWin32.cc, java/lang/Class.h,
java/lang/natClassLoader.cc, java/lang/natObject.cc,
java/lang/Package.java, java/net/BindException.java,
java/net/ConnectException.java, java/net/ProtocolException.java,
java/net/SocketException.java,
java/net/UnknownServiceException.java,
java/security/cert/X509Certificate.java,
java/security/interfaces/DSAKey.java,
java/security/SecureRandom.java, java/security/SignedObject.java,
java/sql/DatabaseMetaData.java,
java/text/DecimalFormatSymbols.java,
java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
java/util/jar/JarInputStream.java,
java/util/jar/JarOutputStream.java, java/util/Calendar.java,
java/util/Collections.java, java/util/GregorianCalendar.java,
java/util/HashMap.java, java/util/List.java,
java/util/Properties.java, java/util/Timer.java,
java/util/Vector.java, java/util/WeakHashMap.java,
javax/naming/NamingException.java,
testsuite/libjava.lang/Thread_Wait.java,
org/xml/sax/helpers/DefaultHandler.java,
org/xml/sax/HandlerBase.java, org/xml/sax/SAXParseException.java,
ChangeLog, acinclude.m4, aclocal.m4, posix-threads.cc: Fix
spelling errors.
* configure: Regenerate.
From-SVN: r46665
2001-10-31 00:48:17 +00:00
Bryce McKinlay
415c055a2a
jni.cc (JNI_CreateJavaVM): Call _Jv_CreateJavaVM.
...
* jni.cc (JNI_CreateJavaVM): Call _Jv_CreateJavaVM. Don't call
_Jv_JNI_Init.
From-SVN: r46633
2001-10-30 10:14:48 +00:00
Tom Tromey
0db58ea45f
re PR libgcj/4728 (java.util.zip.GZIPOutputStream.write(int) doesn't update CRC)
...
* java/util/zip/GZIPOutputStream.java (write(int)): New method.
Fixes PR libgcj/4728.
From-SVN: r46618
2001-10-29 21:50:07 +00:00
Tom Tromey
2bd989ca96
jni.h (struct JNINativeInterface): Returns jsize, not jint.
...
* include/jni.h (struct JNINativeInterface) [GetStringLength]:
Returns jsize, not jint.
From-SVN: r46569
2001-10-27 18:24:51 +00:00
Tom Tromey
a0e16076a2
Adler32.java: Use correct class name.
...
* java/util/zip/Adler32.java: Use correct class name. (Re-merge
from Classpath.)
From-SVN: r46561
2001-10-26 22:01:03 +00:00
Bryce McKinlay
839f820424
VMClassLoader.java (getPrimitiveClass): Now native.
...
* java/lang/VMClassLoader.java (getPrimitiveClass): Now native. Now
takes a jchar type-code argument, not a string.
* java/lang/natClassLoader.cc (VMClassLoader::getPrimitiveClass):
New method. Just call _Jv_FindClassFromSignature.
* java/lang/Boolean.java (TYPE): Initialize from
VMClassLoader.getPrimitiveClass using type-code.
* java/lang/Character.java (TYPE): Likewise.
* java/lang/Double.java (TYPE): Likewise.
* java/lang/Float.java (TYPE): Likewise.
* java/lang/Integer.java (TYPE): Likewise.
* java/lang/Long.java (TYPE): Likewise.
* java/lang/Short.java (TYPE): Likewise.
* java/lang/Void.java (TYPE): Likewise.
From-SVN: r46521
2001-10-26 02:51:04 +01:00
Hans Boehm
e16ffa0d61
boehm-gc.h: Call thread local allocation functions if THREAD_LOCAL_ALLOC is defined.
...
* include/boehm-gc.h: Call thread local allocation functions
if THREAD_LOCAL_ALLOC is defined.
From-SVN: r46490
2001-10-25 17:29:41 +00:00
Bryce McKinlay
11598139d3
natClassLoader.cc (_Jv_RegisterClassHookDefault): Use snprintf, not asprintf.
...
2001-10-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Use
snprintf, not asprintf.
From-SVN: r46482
2001-10-25 04:15:37 +01:00
Loren J. Rittle
d76b252777
Correct date.
...
From-SVN: r46477
2001-10-24 22:03:30 +00:00
Loren J. Rittle
da97915227
configure.in (case $THREADS): Add *-*-freebsd* configuration.
...
* configure.in (case $THREADS): Add *-*-freebsd* configuration.
(HAVE_GETHOSTBYADDR_R): Create a valid, non-optimal
configuration when gethostbyaddr_r exists yet no prototype
exists in netdb.h.
* configure: Rebuilt.
* posix-threads.cc (INTR): Reuse path for LINUX_THREADS
with FREEBSD_THREADS. However, comment different reason.
From-SVN: r46476
2001-10-24 21:57:08 +00:00
Tom Tromey
6dee3a2320
Makefile.in: Rebuilt.
...
2001-10-24 Tom Tromey <tromey@redhat.com>
Warren Levy <warrenl@redhat.com>
* Makefile.in: Rebuilt.
* Makefile.am (javax_source_files): New macro.
(ordinary_java_source_files): Added javax_source_files.
(libgcj.jar): Search javax for class files.
* javax/naming/LinkException.java (toString): Wrote.
(toString(boolean)): Likewise.
* javax/naming/ldap/InitialLdapContext.java: New file.
* javax/naming/directory/InitialDirContext.java: Wrote.
* javax/naming/spi/NamingManager.java (getPlusPath): Now has
package-private protection.
(getURLContext): Likewise.
(NamingManager): Likewise.
* javax/naming/spi/DirectoryManager.java: New file.
* javax/naming/directory/BasicAttributes.java: New file.
* javax/naming/directory/BasicAttribute.java: New file.
* javax/naming/spi/ResolveResult.java
(ResolveResult(Object,String)): Wrote.
(appendRemainingName): Uncommented body.
(appendRemainingComponent): Likewise.
* javax/naming/ldap/ControlFactory.java: New file.
* javax/naming/directory/AttributeModificationException.java
(toString): Wrote.
* javax/naming/spi/NamingManager.java (NamingManager): New
constructor.
(setInitialContextFactoryBuilder): Wrote.
(getInitialContext): Look in system properties for class name as
well. Use Class.forName().
(getURLContext): Wrote.
(ofb): New field.
(setObjectFactoryBuilder): Wrote.
(getObjectInstance): Wrote.
(getContinuationContext): Wrote.
(getPlusPath): New private method.
(getStateToBind): Wrote.
* javax/naming/CannotProceedException.java: Added missing methods &
fields.
* javax/naming/LinkException.java: Added missing methods & fields.
* javax/naming/ReferralException.java (ReferralException): Made
constructor protected per spec.
Added missing abstract methods.
* javax/naming/directory/Attribute.java: Updated copyright.
* javax/naming/directory/AttributeModificationException.java: Ditto.
* javax/naming/directory/Attributes.java: Ditto.
* javax/naming/directory/DirContext.java: Ditto.
* javax/naming/spi/NamingManager.java: Ditto.
* javax/naming/spi/ResolveResult.java: Added comment.
* javax/naming/directory/Attribute.java: Added missing interface
methods.
* javax/naming/directory/AttributeModificationException.java:
Added missing methods & fields.
* javax/naming/directory/directory/Attributes.java: Added missing
interface methods.
* javax/naming/directory/SearchControls.java: Maded serialized fields
private.
* javax/naming/event/NamingEvent.java: Added comment.
* javax/naming/event/NamingExceptionEvent.java: Maded serialized field
private.
* javax/naming/ldap/UnsolicitedNotificationEvent.java: Maded
serialized field private.
* javax/naming/spi/NamingManager.java: Added missing field and stubbed
missing methods.
* javax/naming/directory/DirContext.java: Added missing interface
fields & methods.
* javax/naming/directory/InitialDirContext.java: Stubbed missing
methods.
* javax/naming/directory/ModificationItem.java: New class.
* javax/naming/directory/SearchResult.java: New class.
* javax/naming/directory/SearchControls.java: New class.
* javax/naming/event/EventContext.java: New class.
* javax/naming/event/EventDirContext.java: New class.
* javax/naming/event/NamespaceChangeListener.java: New class.
* javax/naming/event/NamingEvent.java: New class.
* javax/naming/event/NamingExceptionEvent.java: New class.
* javax/naming/event/NamingListener.java: New class.
* javax/naming/event/ObjectChangeListener.java: New class.
* javax/naming/ldap/Control.java: New class.
* javax/naming/ldap/ExtendedRequest.java: New class.
* javax/naming/ldap/ExtendedResponse.java: New class.
* javax/naming/ldap/HasControls.java: New class.
* javax/naming/ldap/LdapContext.java: New class.
* javax/naming/ldap/LdapReferralException.java: New class.
* javax/naming/ldap/UnsolicitedNotification.java: New class.
* javax/naming/ldap/UnsolicitedNotificationEvent.java: New class.
* javax/naming/ldap/UnsolicitedNotificationListener.java: New class.
* javax/naming/spi/DirObjectFactory.java: New class.
* javax/naming/spi/DirStateFactory.java: New class.
* javax/naming/spi/ObjectFactoryBuilder.java: New class.
* javax/naming/spi/ResolveResult.java: New class.
* javax/naming/spi/Resolver.java: New class.
* javax/naming/spi/StateFactory.java: New class.
* javax/naming/spi/ObjectFactory.java: Made an interface per spec.
* java/rmi/RemoteException.java: New class.
* javax/transaction/HeuristicCommitException.java: New class.
* javax/transaction/HeuristicMixedException.java: New class.
* javax/transaction/HeuristicRollbackException.java: New class.
* javax/transaction/NotSupportedException.java: New class.
* javax/transaction/RollbackException.java: New class.
* javax/transaction/Status.java: New class.
* javax/transaction/Synchronization.java: New class.
* javax/transaction/SystemException.java: New class.
* javax/transaction/Transaction.java: New class.
* javax/transaction/TransactionManager.java: New class.
* javax/transaction/UserTransaction.java: New class.
* javax/transaction/xa/XAException.java: Added public static fields.
* javax/transaction/xa/XAResource.java: New class.
* javax/transaction/xa/Xid.java: New class.
* javax/naming/CompoundName.java (CompoundName(String)): Reverse
elements if required. Handle case where quote is at end of
string.
* javax/naming/CompoundName.java (CompoundName(String)): Handle
text left at end of parsing.
(toString): Handle empty element at beginning.
* javax/naming/CompositeName.java (toString): Handle empty element
at beginning.
(CompositeName(String)): Handle text left at end of parsing.
Correctly compute boundary condition for quoting.
* javax/naming/CompoundName.java: New file.
* javax/naming/CompositeName.java: New file.
* javax/naming/Binding.java: New file.
* javax/naming/LinkRef.java: New file.
* javax/naming/NameClassPair.java: New file.
* javax/naming/Reference.java (addrs, classFactory,
classFactoryLocation): New fields.
(className): Now protected.
(Reference): New constructors.
(add): Now public. Implemented.
(get(String)): Likewise.
(add(int,RefAddr)): New method.
(clear): Likewise.
(clone): Likewise.
(equals): Likewise.
(get(int)): Likewise.
(getAll): Likewise.
(getFactoryClassLocation): Likewise.
(getFactoryClassName): Likewise.
(hashCode): Likewise.
(remove): Likewise.
(size): Likewise.
(toString): Likewise.
* javax/transaction/xa/XAException.java: New file.
* javax/transaction/TransactionRolledbackException.java: New file.
* javax/transaction/TransactionRequiredException.java: New file.
* javax/transaction/InvalidTransactionException.java: New file.
* javax/naming/directory/SchemaViolationException.java: Use
correct package. Import NamingException.
* javax/naming/directory/NoSuchAttributeException.java,
javax/naming/directory/InvalidSearchFilterException.java,
javax/naming/directory/InvalidSearchControlsException.java,
javax/naming/directory/InvalidAttributesException.java,
javax/naming/directory/InvalidAttributeValueException.java,
javax/naming/directory/InvalidAttributeIdentifierException.java,
javax/naming/directory/AttributeModificationException.java,
javax/naming/directory/AttributeInUseException.java: Likewise.
* javax/naming/directory/InitialDirContext.java (getAttributes):
Stub implementation.
* javax/naming/RefAddr.java (RefAddr): Reindented.
(equals): Renamed and reindented.
* javax/naming/BinaryRefAddr.java (equals): Renamed and
reindented.
Co-Authored-By: Warren Levy <warrenl@redhat.com>
From-SVN: r46474
2001-10-24 21:39:24 +00:00
Tom Tromey
b8a5867e51
* java/lang/reflect/Field.java: Made many methods private.
...
From-SVN: r46467
2001-10-24 18:06:48 +00:00
Tom Tromey
44d8e21c1e
* java/sql/Types.java (Types): New constructor.
...
From-SVN: r46466
2001-10-24 18:04:23 +00:00
Anthony Green
ee3ef86255
fix include problem
...
From-SVN: r46459
2001-10-24 07:00:19 +00:00
Tom Tromey
0a3abdb238
Field.java (Field): New constructor.
...
* java/lang/reflect/Field.java (Field): New constructor.
* java/lang/ClassLoader.java (defineClass(String,byte[],int,int)):
Throw ClassFormatError.
From-SVN: r46458
2001-10-24 04:38:08 +00:00
Tom Tromey
b36b070c79
PropertyResourceBundle.java (handleGetObject): Now public.
...
* java/util/PropertyResourceBundle.java (handleGetObject): Now
public.
* java/util/ListResourceBundle.java (handleGetObject): Now public
and final, per spec.
From-SVN: r46452
2001-10-24 00:01:15 +00:00
Tom Tromey
28a8851e65
* java/io/BufferedWriter.java (localFlush): Don't synchronize.
...
From-SVN: r46435
2001-10-23 16:18:44 +00:00
Bryce McKinlay
e042de67c4
BufferedWriter (write (String, int, int)): Remove redundant bounds checks.
...
* java/io/BufferedWriter (write (String, int, int)): Remove
redundant bounds checks.
(write (char[], int, int)): Likewise.
From-SVN: r46426
2001-10-23 07:04:58 +01:00
Bryce McKinlay
d9d6919ebb
Fix typos.
...
From-SVN: r46425
2001-10-23 06:43:49 +01:00
Bryce McKinlay
afb2dec526
prims.cc (_Jv_Abort): Always print error message using fprintf, don't try to allocate.
...
* prims.cc (_Jv_Abort): Always print error message using fprintf,
don't try to allocate.
(_Jv_CreateJavaVM): Set gcj::runTimeInitialized.
* include/jvm.h (gcj::runTimeInitialized): New variable declaration.
* java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Handle
duplicate class registration with JvFail if the runtime hasn't been
initialized yet.
From-SVN: r46424
2001-10-23 06:42:03 +01:00
Tom Tromey
187e37f9a6
GregorianCalendar.java (getGregorianChange): Removed `date' argument.
...
* java/util/GregorianCalendar.java (getGregorianChange): Removed
`date' argument.
From-SVN: r46423
2001-10-23 04:16:13 +00:00
Bryce McKinlay
33d4b70f02
JIS0208_to_Unicode.cc: Declare java_exceptions pragma.
...
* gnu/gcj/convert/JIS0208_to_Unicode.cc: Declare java_exceptions
pragma.
* gnu/gcj/convert/JIS0212_to_Unicode.cc: Likewise.
* gnu/gcj/convert/Unicode_to_JIS.cc: Likewise.
* gnu/gcj/convert/gen-from-JIS.c: Put java_exceptions pragma in
output file.
From-SVN: r46400
2001-10-22 06:38:25 +01:00
Mark Wielaard
f0fdd66ba4
Double.java: More Classpath merging
...
* java/lang/Double.java: More Classpath merging
(isInfinite): Don't use doubleToLongBits
(isNaN (Object)): return v != v
(initIDs): make native
* java/lang/Float.java: Ditto
(isInfinite): Don't use floatToIntBits
(isNaN (Object)): return v != v
* java/lang/natDouble.cc: add empty initIDs()
From-SVN: r46370
2001-10-20 06:26:45 +00:00
Mark Wielaard
16f7dac7f5
BinaryRefAddr.java: New file
...
* javax/naming/BinaryRefAddr.java: New file
* javax/naming/InitialContext.java: Compile fix
* javax/naming/InvalidNameException.java: Add comments
* javax/naming/Name.java: Ditto
* javax/naming/NamingException.java: Implement
* javax/naming/OperationNotSupportedException.java: Compile fix
* javax/naming/RefAddr.java: Implement
* javax/naming/StringRefAddr.java: Add comments and implement
* javax/naming/directory/InitialDirContext.java: Compile fix
From-SVN: r46364
2001-10-19 20:36:07 +00:00
Tom Tromey
ac569f305c
BufferedWriter.java (write(String,int,int)): Correctly check bounds.
...
* java/io/BufferedWriter.java (write(String,int,int)): Correctly
check bounds.
From-SVN: r46338
2001-10-18 23:43:59 +00:00
Tom Tromey
c586d12794
Security.java (loadProviders): Removed unused `pname' variable.
...
* java/security/Security.java (loadProviders): Removed unused
`pname' variable. Don't create `File' object. Don't update
`providerCount'.
(providerCount): Removed.
(insertProviderAt): Don't use `providerCount'.
(addProvider(Provider,int)): Likewise.
(removeProvider): Likewise.
(addProvider(Provider)): Rewrote.
(getProviders): Rewrote.
(getProvider): Don't use `providerCount'.
From-SVN: r46332
2001-10-18 17:51:47 +00:00
Tom Tromey
8ea6262761
SHA1PRNG.java (engineNextBytes): Rewrote.
...
* gnu/java/security/provider/SHA1PRNG.java (engineNextBytes):
Rewrote.
* java/security/SecureRandom.java (setSeed(long)): Don't set seed
if secureRandomSpi is not initialized.
From-SVN: r46327
2001-10-18 00:05:29 +00:00
Tom Tromey
9c48b4d1e4
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (secdir): New macro.
(install-data-local): Install new data files.
* java/security/classpath.security: New file.
* java/security/libgcj.security: New file.
From-SVN: r46326
2001-10-18 00:03:48 +00:00
Tom Tromey
fcb4e2ef92
Security.java (loadProviders): Added `vendor' argument.
...
* java/security/Security.java (loadProviders): Added `vendor'
argument.
Load both `classpath' and `java.vm.name' providers.
From-SVN: r46325
2001-10-18 00:01:49 +00:00
Anthony Green
b011ef316b
Security.java (loadProviders): Fix bug in how providers are loaded.
...
2001-10-17 Anthony Green <green@redhat.com>
* java/security/Security.java (loadProviders): Fix bug in how
providers are loaded.
From-SVN: r46319
2001-10-17 18:03:41 +00:00
Tom Tromey
c0e5eb1602
javaprims.h: Updated class list.
...
* gcj/javaprims.h: Updated class list.
* java/util/Hashtable.java: Re-merged with Classpath.
From-SVN: r46295
2001-10-16 22:00:32 +00:00
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