summaryrefslogtreecommitdiffstats
path: root/libjava/java
Commit message (Collapse)AuthorAgeFilesLines
* * java/math/BigInteger.java: Update Copyright year.warrenl2001-01-171-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39082 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-01-16 Hans Boehm <hans_boehm@hp.com>bryce2001-01-171-4/+6
| | | | | | | | * java/math/BigInteger.java (setShiftRight): Only do negative shift if count != 0. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39080 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>apbianco2001-01-153-19/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All files with updated copyright. * prims.cc (class _Jv_PrimClass): Removed. (init_prim_class): New function. (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces `_Jv_PrimClass' in primitive type declarations. Assign to the value returned by `init_prim_class.' * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in primitive type declarations. (JvPrimClass): Cast to `jclass' removed. * java/lang/Class.h (Class): New constructor. (Class): New copy constructor. (initializePrim): New prototype. (_Jv_PrimClass): Field removed. * java/lang/Object.h (struct _JvObjectPrefix): New virtuals nacd_1 and nacd_2 (for compatibility with the new C++ ABI.) (class java::lang::Object): `finalize' moved up front. * java/lang/natClass.cc (isAssignableFrom): Turned outline. (isInstance): Likewise. (isInterface): Likewise, fixed indentation. (initializePrim): New function. (New C++ ABI compatibility patch: http://sources.redhat.com/ml/java-patches/2001-q1/msg00065.html) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39032 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)mark2001-01-151-21/+56
| | | | | | | (decode): Merge comments with Classpath, don't throw Exception git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39030 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natSystem.cc: Include locale.h if it exists.tromey2001-01-121-0/+4
| | | | | | | | * configure: Rebuilt. * configure.in: Check for locale.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38957 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/Cursor.java (Cursor(String)): Set type to custom.tromey2001-01-111-3/+5
| | | | | | | | (Cursor(int), getPredefinedCursor): Throw exception if argument invalid. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38911 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/math/BigDecimal.java (divide): Fixed comment.warrenl2001-01-101-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38862 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR libgcj/1596:warrenl2001-01-101-6/+28
| | | | | | | | | | * java/math/BigDecimal.java (divide): Check newScale for validity. Ensure that BigInteger.pow() is called with a non-negative value. (setScale (int)): New public method. (setScale (int,int)): New public method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38861 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>warrenl2001-01-091-49/+49
| | | | | | | | | Fix for PR libgcj/1338: * java/io/StreamTokenizer.java (nextToken): Handle // and /* before commentChar. Fixed typos in comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38830 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR libgcj/1411:warrenl2001-01-096-139/+205
| | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am: Removed java/util/natTimeZone.cc. * Makefile.in: Rebuilt. * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added missing localized timezone names. * java/lang/System.java (getDefaultTimeZoneId): New private method. * java/lang/natSystem.cc (getSystemTimeZone): New private method. (init_properties): Set user.timezone property. * java/text/DateFormatSymbols.java (zoneStringsDefault): Added default timezone names; removed non-standard ones. Use standard ID names per JCL. * java/util/Date.java (toGMTString): Removed zoneGMT variable. (UTC): Ditto. * java/util/TimeZone.java: Add standard ID names per JCL; removed non-standard ones. (getDefaultTimeZoneId): Removed. (zoneGMT): Removed. (getDefaultTimeZoneId): Removed. * java/util/natTimeZone.cc: Removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38816 138bc75d-0d04-0410-961f-82ee72b054a4
* In gcc/java:bryce2001-01-085-77/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * class.c (make_class_data): Push initial value for "arrayclass". * decl.c (init_decl_processing): Add new class field "arrayclass". In libjava: * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect. (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. (_Jv_GetArrayClass): New inline function. (arrayclass): New field. * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use _Jv_GetArrayElementFromElementType. (_Jv_NewPrimArray): Ditto. (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass. Set Modifier::ABSTRACT. * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass". (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void. Now synchronized. Array classes are now referenced from elementClass->arrayclass. Don't use _Jv_FindClassInCache. Set array classes' accessibility flags correctly. Optimize so that all array classes share the same IDT. * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass. * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto. * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields in superclasses from overwriting classes own fields. (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling Modifier::isAbstract(). (null_idt): New static field. (_Jv_PrepareConstantTimeTables): Optimize case where class implements no interfaces. (_Jv_IndexOf): Made inline. * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38808 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix bug in URLConnection and correct javadoc annotations in StringBuffer.green2001-01-072-4/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38781 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix comments for docletsgreen2001-01-067-14/+19
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38754 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/PipedReader: Synchronize on "lock" instead of this.bryce2001-01-051-118/+130
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38731 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/PipedInputStream: Rewrote to be simpler and more correct.bryce2001-01-054-1240/+856
| | | | | | | | | | * java/io/PipedOutputStream: Updated to match new PipedInputStream. * java/io/PipedReader: New implementation based on new PipedInputStream. * java/io/PipedWriter: Updated to match new PipedOutputStream. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38708 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/Thread.java: Update comment.bryce2001-01-051-6/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38697 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/ScrollPane.java (setBlockIncrement): Throw error.tromey2001-01-032-21/+13
| | | | | | | | | | (getViewportSize): Insets include scrollbar size. (doLayout): Finished. (getScrollPosition): Wrote. * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38670 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/ScrollPane.java: Wrote.tromey2001-01-036-98/+520
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New method. * java/awt/Panel.java (Panel()): Fixed. * java/awt/Component.java (isShowing): Return false if no peer exists, and true if component is visible and no parent exists. (getLocationOnScreen): Wrote. (getPreferredSize): Removed FIXME comment. (getMinimumSize): Likewise. (getAlignmentX, getAlignmentY): Wrote. (list): Wrote. (requestFocus): Wrote. (transferFocus): Wrote. (findNextFocusComponent): New method. (hasFocus()): Wrote. (checkImage): Wrote. (enableEvents): Call setEventMask on the peer. * java/awt/Container.java (list): Use super.list() to print self. (findNextFocusComponent): New method. (setLayout): Call invalidate. (findComponentAt): Wrote. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38639 138bc75d-0d04-0410-961f-82ee72b054a4
* For boehm-gc:bryce2000-12-301-6/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: Rename THREADLIB to THREADLIBS. * Makefile.am (LINK): Add $(THREADLIBS) to libtool command line. This ensures that we link the correct version of the linuxthreads semaphore functions. * Makefile.in: Rebuilt. * configure: Rebuilt. * linux_thread.c (GC_thr_init, GC_suspend_handler): Add SIGABRT to the list of signals which are not blocked during suspend in the NO_SIGNALS case. For libjava: * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that the correct versions of various linuxthreads functions get linked. * Makefile.in: Rebuilt. * java/lang/natThread.cc (finalize_native): New static function. Call _Jv_ThreadDestroyData. (initialize_native): Register finalizer for "data". * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype. (_Jv_ThreadDestroyData): New prototype. * include/win32-threads.h: Ditto. * include/no-threads.h: Ditto. * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype. (_Jv_ThreadDestroyData): New function. Free native thread "data" and move mutex and condition variable destroy code from: (really_start): ...here. (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED. * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype. (_Jv_ThreadDestroyData): Implemented. * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t". (_Jv_AllocArray): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38557 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>bryce2000-12-281-2/+4
| | | | | | | | * java/sql/DriverManager.java (getConnection): Don't set user/password properties if null. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38516 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR libgcj/1358:warrenl2000-12-285-16/+15
| | | | | | | | | | | | | | | | | * java/lang/System.java: Update Copyright date properly. * java/util/Calendar.java: Fix typo in comment. (set): Set 24-hour clock hour instead of 12-hour clock hour. * java/util/GregorianCalendar.java (GregorianCalendar): Properly initialize times. Spec says to set H:M:S values to zero only if a date is given. * java/util/TimeZone.java (getDefaultDisplayName): Casts to char needed for evaluating numbers '0' to '9' in printouts of GMT offsets. * java/util/natGregorianCalendar.cc (computeTime): Properly handle timezones and GMT offsets, being careful to account for units of milliseconds vs. seconds. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38508 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR libgcj/1516:bryce2000-12-281-34/+34
| | | | | | | | | | | | | * java/lang/reflect/natMethod.cc (primitives): Remove void entry. Add boolean entry. (can_widen): Declared inline. Remove redundant checks for void arguments and char->short conversion. Add special case for boolean conversions. (ffi_type): Declared inline. (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38506 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs canbryce2000-12-281-2/+2
| | | | | | | not be assigned to Object. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38505 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-12-26 Petter Reinholdtsen <pere@hungry.com>warrenl2000-12-271-1/+1
| | | | | | | * java/sql/SQLWarning.java: Fixed typo in comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38493 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/MenuItem.java (paramString): Now protected.tromey2000-12-265-27/+409
| | | | | | | | | | | | | | | | | * java/awt/MenuShortcut.java: Implements Serializable. * java/awt/MenuBar.java: Rewrote from scratch. * java/awt/MenuComponent.java (removeNotify): Wrote. Implements Serializable. * java/awt/GridBagConstraints.java (GridBagConstraints): New constructor. * java/awt/CheckboxMenuItem.java: Wrote. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38488 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/MenuContainer.java: Fixed typo.tromey2000-12-2618-50/+761
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added SystemColor.java. * java/awt/SystemColor.java: New file. * java/awt/Color.java (rgba): Now package-private. * java/awt/event/InputEvent.java (isAltGraphDown): New method. * java/awt/event/ContainerEvent.java (getContainer): Renamed from getComponent. * java/awt/MenuItem.java (addNotify): New method. (MenuItem(String,MenuShortcut)): New constructor. (setLabel): Notify peer of change. (setEnabled): Likewise. * java/awt/GridLayout.java (toString): New method. * java/awt/FlowLayout.java (LEADING, TRAILING): New constants. (FlowLayout): Check for LEADING and TRAILING. (setAlignment): Likewise. (layoutContainer): Handle component orientation. * java/awt/Component.java (orientatin): New field. (setComponentOrientation): Wrote. (getComponentOrientation): Wrote. * java/awt/Event.java (Event): Implements Serializable. (consumed): New field for serialization. * java/awt/Dimension.java (Dimension): Implements Serializable. * java/awt/Cursor.java (Cursor): Implements Serializable. * java/awt/Container.java (Container): No longer abstract. * java/awt/Choice.java: Wrote. * java/awt/Checkbox.java: Wrote. * java/awt/ItemSelectable.java: Documented. * java/awt/CheckboxGroup.java: Wrote. * java/awt/CardLayout.java (layoutContainer): Directly use fields in other classes. (getSize): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38486 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>tromey2000-12-261-7/+6
| | | | | | | | * java/io/FileDescriptor.java: Initialize fd to -1. Remove default constructor. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38485 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/mprec.h: Change C9X reference to refer to C99.jsm282000-12-231-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38481 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/Throwable.java (trace_enabled): New static field.bryce2000-12-222-0/+4
| | | | | | | | | | * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if trace_enabled not set. * prims.cc (main_init): Turn off trace_enabled while creating default exception objects. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38442 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/beans/PropertyChangeListener.java: Extends EventListener.tromey2000-12-212-14/+21
| | | | | | | * java/beans/VetoableChangeListener.java: Extends EventListener. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38421 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/Deflater.java (update, init): Now private.tromey2000-12-211-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38420 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/BasicMapEntry.java: Re-added.bryce2000-12-213-85/+136
| | | | | | | | | | | | | * java/util/HashMap.java (Entry): Extend BasicMapEntry. (putAll): Test for BasicMapEntry. * java/util/Hashtable.java (Entry): Extend BasicMapEntry. (putAll): Test for BasicMapEntry. Change references from `HashMap.Entry' to `Entry' in various places. * Makefile.am: Add BasicMapEntry.java. * Makefile.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38410 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/GregorianCalendar.java (GregorianCalendar): Constructorswarrenl2000-12-191-3/+3
| | | | | | | | need to set timezone to a valid non-null value. Partial fix for PR 331. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38375 138bc75d-0d04-0410-961f-82ee72b054a4
* Removed additional addNotify() peer hacks.bryce2000-12-185-9/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38367 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/Window.java (addNotify): Remove peer casting hack nowbryce2000-12-181-2/+1
| | | | | | | that gcj/312 is fixed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38364 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR asbryce2000-12-181-5/+10
| | | | | | | end-of-stream if avail_in is 0. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38338 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/ArrayList.java (data): Declare transient.bryce2000-12-171-14/+6
| | | | | | | | | (serialPersistantFields): Removed. (readObject): Use defaultReadObject(), not readFields(). (writeObject): Use defaultWriteObject(), not writeFields(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38328 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>bryce2000-12-172-22/+14
| | | | | | | | | * java/util/Hashtable.java (put): Remove `last' variable. Link new entry to head of list. * java/util/HashMap.java (put): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38325 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/ResourceBundle.java (trySomeGetBundle): Pass classtromey2000-12-151-1/+3
| | | | | | | loader to Class.forName. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38289 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/ResourceBundle.javatromey2000-12-151-8/+17
| | | | | | | | | (getBundle(String,Locale,ClassLoader)): New method. (trySomeGetBundle): Added `loader' argument. (partialGetBundle): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38275 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,tromey2000-12-151-6/+6
| | | | | | | | | maximumFractionDigits, maximumIntegerDigits, minimumFractionDigits, minimumIntegerDigits): Now package-private. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38274 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/Thread.java (checkAccess): Now final.tromey2000-12-151-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38273 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/RuntimePermission.java: Class now final.tromey2000-12-151-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38272 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/StringWriter.java (StringWriter(int)): Now public.tromey2000-12-151-4/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38271 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/SerializablePermission.java (legal_names): Now private.tromey2000-12-151-3/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38270 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/Character.java: Updated UnicodeBlock constants.tromey2000-12-151-9/+43
| | | | | | | | * scripts/blocks.pl: Special case private use and surrogate areas. Updated URL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38269 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.bryce2000-12-111-7/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38185 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.am: Add HashSet.java and java/lang/ref classes.bryce2000-12-1115-1969/+2821
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove BasicMapEntry.java and Bucket.java. * Makefile.in: Rebuilt. * java/util/HashMap.java: Rewritten. * java/util/HashSet.java: Imported from classpath. * java/util/WeakHashMap.java: Imported from classpath. * java/util/Hashtable.java: Rewritten based on new HashMap code. * java/util/Bucket.java: Deleted. * java/util/BasicMapEntry.java: Deleted. * java/util/Collections.java (search): Use a for-loop, not iterator hasNext(). (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out of elements in source. (max): Use a for-loop. (min): Ditto. (reverse): Keep track of positions instead of using Iterator's nextIndex() and previousIndex(). (shuffle(List)): Initialize defaultRandom if required using double-check thread safety idiom. Call two-argument shuffle method using defaultRandom. (defaultRandom): New field. (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of using previousIndex() and nextIndex(). (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry. * java/util/AbstractCollection.java (toString): Use a StringBuffer. * java/util/AbstractMap.java (toString): Use StringBuffer. * java/lang/ref/PhantomReference.java: Imported from classpath. * java/lang/ref/SoftReference.java: Ditto. * java/lang/ref/Reference.java: Ditto. * java/lang/ref/WeakReference.java: Ditto. * java/lang/ref/ReferenceQueue.java: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38183 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/StringBuffer.java (insert(int,char[])): Avoidwarrenl2000-12-081-1/+3
| | | | | | | NullPointerException so proper check of offset can be done. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38132 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/FileInputStream.java (close): Check if the fd is valid.warrenl2000-12-084-8/+8
| | | | | | | | | * java/io/RandomAccessFile.java (close): Ditto. * java/net/PlainDatagramSocketImpl.java (close): Ditto. * java/net/PlainSocketImpl.java (close): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38131 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud