aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2001-10-24fix include problemAnthony Green2-1/+7
From-SVN: r46459
2001-10-24Field.java (Field): New constructor.Tom Tromey3-0/+13
* java/lang/reflect/Field.java (Field): New constructor. * java/lang/ClassLoader.java (defineClass(String,byte[],int,int)): Throw ClassFormatError. From-SVN: r46458
2001-10-24PropertyResourceBundle.java (handleGetObject): Now public.Tom Tromey3-4/+9
* java/util/PropertyResourceBundle.java (handleGetObject): Now public. * java/util/ListResourceBundle.java (handleGetObject): Now public and final, per spec. From-SVN: r46452
2001-10-23* java/io/BufferedWriter.java (localFlush): Don't synchronize.Tom Tromey2-5/+7
From-SVN: r46435
2001-10-23BufferedWriter (write (String, int, int)): Remove redundant bounds checks.Bryce McKinlay2-6/+4
* java/io/BufferedWriter (write (String, int, int)): Remove redundant bounds checks. (write (char[], int, int)): Likewise. From-SVN: r46426
2001-10-23Fix typos.Bryce McKinlay1-2/+2
From-SVN: r46425
2001-10-23prims.cc (_Jv_Abort): Always print error message using fprintf, don't try to ↵Bryce McKinlay4-9/+30
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-23GregorianCalendar.java (getGregorianChange): Removed `date' argument.Tom Tromey2-1/+6
* java/util/GregorianCalendar.java (getGregorianChange): Removed `date' argument. From-SVN: r46423
2001-10-22JIS0208_to_Unicode.cc: Declare java_exceptions pragma.Bryce McKinlay5-0/+13
* 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-20Double.java: More Classpath mergingMark Wielaard4-19/+42
* 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-19BinaryRefAddr.java: New fileMark Wielaard10-52/+823
* 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-18BufferedWriter.java (write(String,int,int)): Correctly check bounds.Tom Tromey2-2/+5
* java/io/BufferedWriter.java (write(String,int,int)): Correctly check bounds. From-SVN: r46338
2001-10-18Security.java (loadProviders): Removed unused `pname' variable.Tom Tromey2-38/+27
* 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-18SHA1PRNG.java (engineNextBytes): Rewrote.Tom Tromey3-31/+45
* 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-18Makefile.in: Rebuilt.Tom Tromey5-61/+1163
* 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-18Security.java (loadProviders): Added `vendor' argument.Tom Tromey2-5/+16
* java/security/Security.java (loadProviders): Added `vendor' argument. Load both `classpath' and `java.vm.name' providers. From-SVN: r46325
2001-10-17Security.java (loadProviders): Fix bug in how providers are loaded.Anthony Green2-1/+7
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-16javaprims.h: Updated class list.Tom Tromey3-394/+623
* gcj/javaprims.h: Updated class list. * java/util/Hashtable.java: Re-merged with Classpath. From-SVN: r46295
2001-10-16Forgot this file in last commit.Bryce McKinlay1-21/+6
From-SVN: r46284
2001-10-16Eliminate use of C++ static constructors.Bryce McKinlay10-62/+132
* 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* name-finder.cc (_Jv_name_finder::lookup): Check for NULL dli_sname.Bryce McKinlay2-1/+7
From-SVN: r46280
2001-10-16[multiple changes]Bryce McKinlay16-1761/+2222
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-15AccessibleObject.java (checkPermission): Implemented.Tom Tromey2-7/+37
* java/lang/reflect/AccessibleObject.java (checkPermission): Implemented. Updated copyright information. From-SVN: r46272
2001-10-15natObject.cc (heavy_lock): Moved fields old_client_data, ↵Hans Boehm5-33/+228
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-15Makefile.in: Rebuilt.Tom Tromey4-3/+60
* Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added new file. * java/beans/AppletInitializer.java: New file. From-SVN: r46267
2001-10-15SocketPermission.java (hostport, actions): Now private.Tom Tromey2-3/+8
* java/net/SocketPermission.java (hostport, actions): Now private. From-SVN: r46266
2001-10-15Double.java: Partial merge with ClasspathMark Wielaard3-84/+795
* 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-13* java/lang/SecurityManager.java (SecurityManager): Now public.Tom Tromey2-1/+3
From-SVN: r46247
2001-10-13AccessController.java (checkPermission): Now throws AccessControlException.Tom Tromey11-20/+59
* 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-12Makefile.in: Rebuilt.Tom Tromey7-12/+213
* 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-11configure: Rebuilt.Tom Tromey3-660/+390
* configure: Rebuilt. * configure.in: Recognize --disable-java-awt. From-SVN: r46186
2001-10-10natFinalizerThread.cc: New file.Tom Tromey12-39/+210
* 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-09strtod.c (_strtod_r): Logic to check for missing digits after exponent had ↵Per Bothner2-8/+12
'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* java/net/SocketImpl.java: Merge with ClasspathMark Wielaard2-20/+174
From-SVN: r46129
2001-10-09* java/net/DatagramSocketImpl.java: Merge with ClasspathMark Wielaard2-15/+152
From-SVN: r46127
2001-10-08URLDecoder.java: Remerge with ClasspathMark Wielaard3-70/+232
* java/net/URLDecoder.java: Remerge with Classpath * java/net/URLEncoder.java: Merge with Classpath From-SVN: r46098
2001-10-08re PR libgcj/4481 (java.io.File.getParent not working properly)Tom Tromey2-2/+11
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* java/io/BufferedInputStream.java: Merge with ClasspathMark Wielaard2-16/+201
From-SVN: r46086
2001-10-07acinclude.m4: Fix spelling error of "separate" as "seperate".Joseph Myers6-8/+16
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-05DecimalFormat.java (format): Use localized minus sign when generating ↵Tom Tromey2-2/+12
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-05Adler32.java: Merge with ClasspathMark Wielaard6-52/+134
* 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-05jni.cc (_Jv_JNI_DeleteLocalRef): Use correct frame sizeMartin Kahlert2-1/+5
2001-10-04 Martin Kahlert <martin.kahlert@infineon.com> * jni.cc (_Jv_JNI_DeleteLocalRef): Use correct frame size From-SVN: r46034
2001-10-05* java/lang/reflect/Modifier.java: Merge with ClasspathMark Wielaard2-28/+176
From-SVN: r46019
2001-10-04SequenceInputStream.java: Merge with ClasspathMark Wielaard4-32/+239
* java/io/SequenceInputStream.java: Merge with Classpath * java/io/StringBufferInputStream.java: Ditto * java/util/Collections.java: Remerge with Classpath From-SVN: r46005
2001-10-03natReference.cc (add_to_hash): Set n->next before setting *link.Tom Tromey2-1/+6
* java/lang/ref/natReference.cc (add_to_hash): Set n->next before setting *link. From-SVN: r45996
2001-10-03* gij.cc (version): Use GCJVERSION.Bryce McKinlay1-1/+1
From-SVN: r45993
2001-10-03* resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.Bryce McKinlay2-2/+6
From-SVN: r45988
2001-10-02Makefile.am (core_java_source_files): add InheritableThreadLocalMark Wielaard6-0/+181
* 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-02Makefile.am: Add new classesMark Wielaard9-57/+575
* 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-02javaprims.h: Rebuilt class list.Tom Tromey8-34/+401
* 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