aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
AgeCommit message (Collapse)AuthorFilesLines
2001-10-16[multiple changes]Bryce McKinlay13-612/+2114
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 Tromey1-7/+31
* 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 Boehm1-32/+178
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 Tromey1-0/+50
* 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 Tromey1-3/+3
* java/net/SocketPermission.java (hostport, actions): Now private. From-SVN: r46266
2001-10-15Double.java: Partial merge with ClasspathMark Wielaard2-84/+771
* 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 Tromey1-1/+1
From-SVN: r46247
2001-10-13AccessController.java (checkPermission): Now throws AccessControlException.Tom Tromey10-20/+38
* 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-10natFinalizerThread.cc: New file.Tom Tromey1-1/+2
* 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 Bothner1-8/+7
'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 Wielaard1-20/+170
From-SVN: r46129
2001-10-09* java/net/DatagramSocketImpl.java: Merge with ClasspathMark Wielaard1-15/+148
From-SVN: r46127
2001-10-08URLDecoder.java: Remerge with ClasspathMark Wielaard2-70/+227
* 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 Tromey1-2/+5
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 Wielaard1-16/+197
From-SVN: r46086
2001-10-07acinclude.m4: Fix spelling error of "separate" as "seperate".Joseph Myers4-7/+7
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 Tromey1-2/+6
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 Wielaard5-52/+126
* 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* java/lang/reflect/Modifier.java: Merge with ClasspathMark Wielaard1-28/+172
From-SVN: r46019
2001-10-04SequenceInputStream.java: Merge with ClasspathMark Wielaard3-32/+233
* 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 Tromey1-1/+1
* java/lang/ref/natReference.cc (add_to_hash): Set n->next before setting *link. From-SVN: r45996
2001-10-02Makefile.am (core_java_source_files): add InheritableThreadLocalMark Wielaard2-0/+168
* 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 Wielaard5-17/+525
* 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 Tromey2-3/+326
* 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-02prims.cc (_Jv_NewMultiArrayUnchecked): New method.Tom Tromey2-4/+5
* 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-01FileWriter.java: Merge with Classpath.Mark Wielaard12-413/+1641
* 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-09-30DataInput.java: Merge with Classpath.Mark Wielaard13-218/+1253
* 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-30re PR libgcj/4383 (file: protocol not supported in URLConnection?)Bryce McKinlay1-2/+2
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-30natClass.cc (_Jv_IsAssignableFrom): Handle the case of an uninitialized ↵Bryce McKinlay1-2/+3
target class. * java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of an uninitialized target class. From-SVN: r45893
2001-09-27IdentityHashMap.java (containsKey): Use getHash.Tom Tromey1-11/+18
* 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-27Configuration.java.in (INIT_LOAD_LIBRARY): New constant.Tom Tromey2-1/+10
* 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-26DataInputStream.java (readChar): Use readFully.Tom Tromey1-15/+5
* java/io/DataInputStream.java (readChar): Use readFully. (readInt): Likewise. (readLong): Likewise. (readShort): Likewise. (readUnsignedShort): Likewise. From-SVN: r45834
2001-09-25* java/security/cert/X509Extension.java: Merge from classpath.Bryce McKinlay1-2/+2
From-SVN: r45798
2001-09-24PosixProcess.java (exitValue): Implement here.Bryce McKinlay2-28/+19
* 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-23misc fixesAnthony Green2-1/+8
From-SVN: r45758
2001-09-21jvm.h (_Jv_VTable): Handle function descriptors for ia64...Richard Henderson1-8/+5
* 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-21no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.Richard Henderson1-1/+1
* no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments. * java/lang/mprec.c (lo0bits): Fix paren typo. From-SVN: r45724
2001-09-21posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of blocking IO ↵Bryce McKinlay1-33/+40
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-15TimeZone.java: Updated list of timezones from Classpath.Tom Tromey1-2/+8
* java/util/TimeZone.java: Updated list of timezones from Classpath. From-SVN: r45622
2001-09-14CloneNotSupportedException.java: Re-merged with Classpath.Tom Tromey1-16/+22
* java/lang/CloneNotSupportedException.java: Re-merged with Classpath. From-SVN: r45599
2001-09-14Hashtable.java (Enumerator): Ensure that if hasMoreElements() returns true...Bryce McKinlay1-17/+30
* 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-14File.java (normalizePath): Use equals() not '==' for string comparison.Bryce McKinlay1-1/+1
* java/io/File.java (normalizePath): Use equals() not '==' for string comparison. From-SVN: r45583
2001-09-12* java/io/File.java (toURL): Use getAbsolutePath and `file://'.Tom Tromey1-1/+2
From-SVN: r45556
2001-09-11Properties.java (load): Correctly read \u sequences.Tom Tromey1-1/+3
* java/util/Properties.java (load): Correctly read \u sequences. Report from Anthony Green. From-SVN: r45532
2001-09-07ResourceBundle fixesAnthony Green1-28/+40
From-SVN: r45472
2001-09-07RuleBasedCollator.java (clone): Rewrote.Tom Tromey3-444/+490
* 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-06jvm.h: Declare _Jv_RegisterResource.Anthony Green1-0/+4
* 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* java/util/Properties.java: Re-merged from Classpath.Tom Tromey1-4/+8
From-SVN: r45442
2001-09-05From Eric Blake, via Classpath:Tom Tromey1-6/+37
* java/lang/String.java (CaseInsensitiveComparator): New class. (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator. From-SVN: r45425
2001-09-05* java/util/Date.java: Re-merged with Classpath.Tom Tromey1-6/+7
From-SVN: r45421