summaryrefslogtreecommitdiffstats
path: root/libjava/java
Commit message (Collapse)AuthorAgeFilesLines
* * 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
* * java/awt/GridBagConstraints.java: Filled in values for statictromey2000-12-071-15/+15
| | | | | | | final fields. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38081 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/BitSet.java: Updated copyright notice.tromey2000-12-061-4/+21
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38078 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Rebuilt.tromey2000-12-061-0/+89
| | | | | | | | * Makefile.am (awt_java_source_files): Added new file. * java/awt/GridBagConstraints.java: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38076 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/text/Collator.java (decomposeCharacter, decmp, strength):tromey2000-12-065-8/+8
| | | | | | | | | | | Now package-private, not protected. * java/text/DateFormatSymbols.java (equals): Now private. * java/text/DecimalFormatSymbols.java (safeGetChar): Now private. * java/util/BitSet.java: Class no longer final. * java/util/Set.java (toArray(Object[])): New method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38075 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/TimeZone.java (getAvailableIDs): Activated commentedwarrenl2000-12-041-10/+0
| | | | | | | out code dependent on compiler and library changes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37994 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/FilePermission.java: Made class final per spec.warrenl2000-12-043-4/+4
| | | | | | | | | * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed method name to match spec (fixed typo). * java/util/LinkedList.java: Implements List. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37993 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. Frombryce2000-12-041-1/+1
| | | | | | | Edgar Villanueva <edgarvil@home.com>. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37991 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/geom/Point2D.java: Added protected constructor.tromey2000-12-046-18/+40
| | | | | | | | | | | | | | | (equals): New method. (Float.setLocation(float,float)): New method. * java/awt/geom/Dimension2D.java: Added protected constructor. * java/awt/geom/AffineTransform.java: Made all constants public. (concatenate): Fixed typo in name. * java/awt/event/WindowAdapter.java: Class now abstract. * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final. * java/awt/event/FocusEvent.java: Extend ComponentEvent, not AWTEvent. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37988 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/AWTError.java: Extend Error, nottromey2000-12-041-6/+6
| | | | | | | IllegalStateException. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37987 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Rebuilt.tromey2000-12-031-0/+345
| | | | | | | | * Makefile.am (awt_java_source_files): Added new file. * java/awt/geom/RoundRectangle2D.java: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37980 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Rebuilt.tromey2000-12-031-0/+250
| | | | | | | | * Makefile.am (awt_java_source_files): Added new file. * java/awt/FlowLayout.java: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37968 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Rebuilt.tromey2000-12-031-0/+268
| | | | | | | | * Makefile.am (awt_java_source_files): Added new file. * java/awt/GridLayout.java: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37967 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Rebuilt.tromey2000-12-032-0/+401
| | | | | | | | | * Makefile.am (awt_java_source_files): Added new files. * java/awt/CardLayout.java: New file. * java/awt/AWTPermission.java: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37965 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/Vector.java (insertElementAt): Unconditionallytromey2000-12-021-2/+7
| | | | | | | | increment elementCount. (removeRange): Clear unused slots in vector. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37944 138bc75d-0d04-0410-961f-82ee72b054a4
* From Adam Welc <welc@cs.purdue.edu>:bryce2000-12-021-1/+11
| | | | | | | | | * java/util/LinkedList.java (removeFirst): Update `first' field. Handle the last == first case. (removeLast): Update `last' field. Handle the last == first case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37940 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-12-024-2/+5
| | | | | | | | | | | * java/lang/natMath.cc: Declare fabsf() function. * java/lang/mprec.h: Don't include math.h. * java/lang/dtoa.c: Include string.h. * java/lang/natString.cc (toLowerCase): Initialize ch to prevent compiler warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37938 138bc75d-0d04-0410-961f-82ee72b054a4
* * Array.java: New file from classpath.warrenl2000-12-0121-20/+3786
| | | | | | | | | | | | | | | | | | | | | | | | | | * BatchUpdateException.java: Ditto. * Blob.java: Ditto. * Clob.java: Ditto. * Ref.java: Ditto. * SQLData.java: Ditto. * SQLInput.java: Ditto. * SQLOutput.java: Ditto. * Struct.java: Ditto. * CallableStatement.java: Merged file from claspath. * Connection.java: Ditto. * DataTruncation.java: Ditto. * DatabaseMetaData.java: Ditto. * DriverManager.java: Ditto. * PreparedStatement.java: Ditto. * ResultSet.java: Ditto. * ResultSetMetaData.java: Ditto. * SQLException.java: Ditto. * SQLWarning.java: Ditto. * Statement.java: Ditto. * Types.java: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37906 138bc75d-0d04-0410-961f-82ee72b054a4
* Check this.len, not len, when determining if there is no more input data.bryce2000-11-291-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37847 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/InflaterInputStream (read): Don't return -1 unlessbryce2000-11-293-15/+11
| | | | | | | | | | | the infate() call didn't deliver any output. Throw a ZipException if the needsDictionary() call returns true. * java/io/ByteArrayInputStream (read): Remove redundant bounds checks. * java/io/InputStreamReader: Use the default buffer size for the contained BufferedInputStream. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37846 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-11-291-1/+26
| | | | | | | | | | | * java/lang/natSystem.cc (init_properties): Set user.language and user.region. * configure.in: Check for setlocale. * configure: Rebuilt. * include/config.h.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37842 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/text/DateFormatSymbols.java (zoneStringsDefault): Addedwarrenl2000-11-282-3/+23
| | | | | | | | | more time zone entries. * java/text/SimpleDateFormat.java (format): Added case for TIMEZONE_FIELD. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37824 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-28 Bryce McKinlay <bryce@abatross.co.nz>bryce2000-11-282-58/+211
| | | | | | | | | | | | | | * java/io/DataInputStream.java: Merge classpath docs. Call in.read() directly rather than read() in all cases. Make primitive read implementations more efficient, as defined in JDK online docs. (skipBytes): Behave like the JDK's implementation. * java/io/BufferedReader.java: Merge classpath docs. Check for a closed stream with checkStatus() whenever an IOException can be thrown. (checkStatus): New private method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37810 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.am: Added natTimeZone.cc.warrenl2000-11-284-556/+2182
| | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in: Rebuilt. * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries. * java/text/DateFormatSymbols.java (ampms): Made package private. (eras): Made package private. (months): Made package private. (shortMonths): Made package private. (shortWeekdays): Made package private. (weekdays): Made package private. (formatPrefixes): New private field. (localPatternCharsDefault): Made private. (dateFormats): New package private field. (timeFormats): New package private field. (formatsForKey): New private method. (DateFormatSymbols(Locale)): Set dateFormats and timeFormats. (DateFormatSymbols(DateFormatSymbols)): Ditto. * java/text/SimpleDateFormat.java: Merged with Classpath. * java/util/TimeZone.java: Merged with Classpath. * java/util/natTimeZone.cc: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37808 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-11-273-39/+38
| | | | | | | | | | | | | | | | | | | | * java/util/Vector.java (ensureCapacity): Don't increment modCount. (addElement): Don't increment elementCount twice. Doh. * java/util/ArrayList.java (add): Only call ensureCapacity if the array needs to be expanded. (addAll): Ditto. * java/util/Collections.java (UnmodifiableCollection): Implement toString(). (UnmodifiableList): Throw UnsupportedOperationException from modification methods. Set `l' from the one-parameter constructor. (UnmodifiableMap): Implement toString(). (SynchronizedCollection): Ditto. (SynchronizedList): Set `l' from the one-parameter constructor. (SynchronizedSortedSet): Set `ss' from the one-parameter constructor. (SynchronizedMap): Implement toString(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37785 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Rebuilt.tromey2000-11-273-7/+175
| | | | | | | | | | | | * Makefile.am (core_java_source_files): Added RuntimePermission.java. * java/lang/RuntimePermission.java: Imported from Classpath. * java/lang/Thread.java (getContextClassLoader): Now synchronized. Added security code. (setContextClassLoader): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37772 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-25 Anthony Green <green@redhat.com>green2000-11-266-77/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * prims.cc (_Jv_NewObjectArray): Undo placement change. (_Jv_NewPrimArray): Likewise. * gcj/array.h (__JArray): Undo const change. Removed constructor. (class JArray): Removed constructor. * java/lang/Thread.java (context_class_loader): New private data. (getContextClassLoader): New method. (setContextClassLoader): New method. (Thread): Initialize context_class_loader. * java/net/URLClassLoader.java: Import java.util.Enumeration. (getResource): Rename to findResource. (findResource): New method. Used to be getResource. (getResourceAsStream): Deleted. (jarFileize): Extracted logic from URLClassLoader constructor into this new private method. (addURL): New protected method. (URLClassLoader): Call jarFileize. Use addElement instead of insertElementAt. (findResources): New method. * java/lang/ClassLoader.java: Import java.util.Enumeration. (getResource): Implement correct logic. (findResource): New method. (getResources): New method. (findClass): Create a ClassNotFoundException with the name of the class rather than nothing at all. (defineClass) Only throw ClassFormatError. * java/lang/Class.java (forName): New method. * java/lang/Class.h (forName): New method. * java/lang/natClass.cc (forName): New method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37751 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-11-264-74/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/lang/System.java (setProperties): Only call init_properties() if properties is null. (getProperties): Ditto. (getProperty): Ditto. (setProperty): Call init_properties if properties are null. (prop_init): Remove field. * java/lang/natSystem.cc (init_properties): Synchronize the entire method. Check for null properties after synchronizing instead of prop_init flag. Set the properties field last for thread safety. * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set, test for gcj.dumpobjects property and enable object stream dumping if it is set. (dumpElement): No longer native. (dumpElementln): Ditto. (setDump): Do not define. * java/io/natObjectInputStream.cc (dumpElement): Removed. (dumpElementln): Removed. (setDump): Removed. 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz> * configure: Rebuilt. * Makefile.in: Rebuilt. * Makefile.am (built_java_source_files): Add Configuration.java. * configure.in: Add Configuration.java to CONFIG_FILES. Set LIBGCJDEBUG substitution if --enable-libgcj-debug is specified. Create `gnu' directory in the build tree. * gnu/classpath/Configuration.java.in: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37749 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-11-231-18/+23
| | | | | | | | | | | | * java/util/Vector.java: Improve exception messages. (Vector): Check initialCapacity for IllegalArgumentException. (tromToSize): Don't check for elementCount == elementData.length case. (toArray): Don't try to set null marker if target array is the same length as the vector. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37685 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-11-225-383/+2786
| | | | | | | | | | | | | | | | | | * Makefile.in: Rebuilt. * Makefile.am (core_java_source_files): Added Collections.java. * java/util/List.java: Merged from classpath. * java/util/Vector.java: Ditto. * java/util/Collections.java: From classpath. * java/util/ArrayList.java (addAll(Collection)): Call addAll(int,Collection) instead of duplicating code. (indexOf): Clean up int initialization. (clear): Set cleared array entries to null, to allow garbage collection. * java/util/List.java: Minor formatting fixes. * java/util/SimpleTimeZone.java: ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37652 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Rebuilt.tromey2000-11-203-0/+350
| | | | | | | | | | * Makefile.am (core_java_source_files): Added new files. * java/lang/reflect/ReflectPermission.java: New class. * java/io/FileFilter.java: From Classpath * java/io/FilePermission.java: From Classpath. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37586 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/reflect/AccessibleObject.java (isAccessible,tromey2000-11-181-26/+26
| | | | | | | setAccessible): Now public. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37540 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natString.cc: Include Locale.h.tromey2000-11-186-159/+302
| | | | | | | | | | | | | | | | | | | | | | | | | | | (toUpperCase): Added `locale' argument. Handle locale sensitivity. (toLowerCase): Added `locale' argument. Handle locale sensitivity. (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I, CAPITAL_I): New defines. * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and final. Import Locale. (toUpperCase, toLowerCase): New methods. Variants which accept locale now native. * java/lang/ExceptionInInitializerError.java (printStackTrace): New methods. * java/util/PropertyPermission.java: Re-merged from Classpath. * java/text/RuleBasedCollator.java (getCollationElementIterator): New method. * java/text/StringCharacterIterator.java: Reindented. (setText): New method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37539 138bc75d-0d04-0410-961f-82ee72b054a4
* Merge with Classpath (changes by Bryce McKinlay)mark2000-11-187-1323/+1455
| | | | | | | | * java/util/jar/*.java: Reformat all to unofficial standard coding style. No changes of substance. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37538 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/*.java: Javadoc and copyright updates.mark2000-11-1718-195/+666
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37526 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/text/CollationKey.java: Implement Comparable.tromey2000-11-174-10/+49
| | | | | | | | | | | | | | | (compareTo(Object)): New method. * java/text/Collator.java (compare(Object,Object)): New method. Implement Comparator. * java/util/zip/InflaterInputStream.java (available): New method. (close): New method. (read, available, skip, fill): Throw exception if stream closed. * java/util/zip/ZipInputStream.java (read, skip, readFully, fill, getNextEntry): Throw exception if closed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37525 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/PushbackReader.java: Merged with Classpath.tromey2000-11-176-811/+1742
| | | | | | | | | | | | | | | | | | * java/util/Arrays.java: Updated from Classpath. * scripts/blocks.pl: New file. * java/lang/Character.java (Subset): New class. (UnicodeBlock): New class. * java/lang/Math.java (toDegrees, toRadians): New methods. * java/lang/Float.java: Implement Comparable. (compareTo): New methods. * java/lang/Double.java: Implement Comparable. (compareTo): New methods. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37512 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/beans/PropertyChangeSupport.java (propertyListeners): Madewarrenl2000-11-163-21/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | transient. (listeners): Made transient. (source): Renamed from 'bean'. (children): New field for serialization. (propertyChangeSupportSerializedDataVersion): Ditto. (serialVersionUID): Ditto. (writeObject): New serialization method. (readObject): New serialization method. * java/beans/VetoableChangeSupport.java (propertyListeners): Made transient. (listeners): Made transient. (source): Renamed from 'bean'. (children): New field for serialization. (vetoableChangeSupportSerializedDataVersion): Ditto. (serialVersionUID): Ditto. (writeObject): New serialization method. (readObject): New serialization method. * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert to allow constructor to have a return type (i.e. the class that the constructor constructs). Serialization mods. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37506 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/ObjectInputStream.java (readObject): Added code towarrenl2000-11-032-21/+119
| | | | | | | | | | | | | | | | | | | | | | | | conditionally dump out the serialized data. Handle ENDBLOCKDATA case a bit more gracefully since the current behavior doesn't seem to work as expected. (readStreamHeader): Added code for serialized data dumper. (readNextBlock): Ditto. (readFields): Ditto. (dump): New private static field for turning on/off dumper. (setDump): New native method. (dumpElement): New native method. (dumpElementln): New native method. * java/io/natObjectInputStream.cc (setDump): New method. (dumpElement): New method. (dumpElementln): New method. Serialization dumper. Enable by configuring with --enable-libgcj-debug and calling java.io.ObjectInputStream.setDump(true) in your test program. The output will be generated as the object is deserialized (i.e. the readObject() method is executed). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37223 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/net/InetAddress.java (addr): Renamed from 'address'.warrenl2000-11-034-37/+103
| | | | | | | | | | | | | | | | | | | | | (address): New field to match Serialized Form doc. (hostName): Renamed from 'hostname' to match Serialized Form doc. (family): New serialization field. (serialVersionUID): New field. (readObject): New method. (writeObject): New method. (getFamily): New native method. (InetAddress): Set family. * java/net/natInetAddress.cc (getFamily): New method. (addr): Renamed from 'address'. (hostName): Renamed from 'hostname' to match Serialized Form doc. * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'. * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'. Serialization mod. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37222 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-11-032-219/+233
| | | | | | | | | | | | | * java/util/AbstractList.java (SubList): Make it a top-level private class. * java/util/LinkedList.java (remove): Do update modCount and knownMod. (add): Ditto. * Makefile.am (ordinary_java_source_files): Add LinkedList.java. * Makefile.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37218 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-11-021-2/+4
| | | | | | | | | * java/util/AbstractList.java (remove): Comment out modCount increment to work around compiler bug. (add): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37204 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-11-024-452/+631
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/util/AbstractList.java: Throw messages with IndexOutOfBoundsExceptions. (listIterator()): Call listIterator(0). (size): New field. Initialize to size(). (hasNext): Test position against size, not size(). (remove): Increment knownMod by one instead of resetting it from modCount. (add): Ditto. (SubList.upMod): Removed. (SubList.set): Don't call upMod() or update knownMod. (SubList.add(int,Object)): Increment modCount instead of calling upMod(). (SubList.remove): Ditto. (SubList.addAll): Don't call backingList.size(). Increment size from c.size(). (SubList.iterator): New method. Call listIterator(0). (SubList.listIterator): New method. Restore code to return an anonymous listIterator implementation (with some changes). * java/util/AbstractSequentialList.java: Throw messages with IndexOutOfBoundsExceptions. (addAll): Add a specnote. * java/util/ArrayList.java (removeRange): Get the math right. (addAll): Increment modCount _before_ creating iterator. * java/util/LinkedList.java: Rewritten, mostly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37203 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/Reader.java: Merge docs from classpath.bryce2000-10-303-49/+292
| | | | | | | | | | | (skip): Synchronize on `lock'. * java/io/FileReader.java: Import correct implementation from classpath. * java/io/StringReader.java: Merge docs from classpath. (ready): Throw IOException if stream is closed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37143 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-10-301-11/+6
| | | | | | | * java/util/BitSet.java: Updated @specnote. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37138 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-10-297-891/+911
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/util/AbstractCollection.java (addAll): Use size() instead of hasNext() in iterator loop. (clear): Ditto. (contains): Ditto. Simplify loop. (containsAll): Ditto. (remove): Ditto. (removeAll): Ditto. (retainAll): Ditto. (toArray): Ditto. (toString): Ditto. Use string concatenation operators, not StringBuffer. * java/util/AbstractList.java (addAll): Use size() instead of hasNext() in iterator loop. (equals): Ditto. (hashCode): Ditto. (indexOf): Ditto. Don't take null check outside of the loop. (iterator): Return an AbstractListItr instead of anonymous class. (lastIndexOf): Use a for loop bounded by size() instead of hasPrevious() in iterator loop. (listIterator): Return an AbstractListItr. (removeRange): Remove bounds checking code and docs. (AbstractListItr): New inner class. Code moved here from listIterator(). (SubList.iterator): Removed. Use default implementation from AbstractList instead. (SubList.listIterator): As above. * java/util/AbstractMap.java (clear): Use a for loop bounded by size() instead of hasNext() in iterator loop. (containsValue): Ditto. (equals): Ditto. (get): Ditto. (put): Ditto. (putAll): Ditto. (remove): Ditto. (toString): Ditto. Use string concatenation operators, not StringBuffer. * java/util/AbstractSequentialList.java (addAll): Use a for loop bounded by size() instead of hasNext() in iterator loop. * java/util/AbstractSet.java (hashCode): Don't catch exception as part of normal execution flow. Do an explicit null check instead. * java/util/ArrayList.java (_iSize): Rename to `size'. (_arData): Rename to `data'. (get): Check lower bounds also. Simplify IndexOutOfBoundsException message. (remove): Ditto. (removeRange): Make protected. Don't check bounds. (add): Check lower bounds also. Simplify IndexOutOfBoundsException message. (addAll (Collection)): Use a size-bounded for loop instead of hasNext() check. (addAll (int, Collection)): Check lower bounds. Simplify exception string. (clone): Clone the data array too. (indexOf): Inline doesEqual(). (lastIndexOf): Ditto. (clear): Don't set array data to null. (set): Check lower bounds. Simplify exception string. (toArray): Correct comment. (trimToSize): Don't update modCount, this is not a structural change. Add comment. * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods implemented. (toString): Declare `bit' as long, not int. (data): Made package-private, not private. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37116 138bc75d-0d04-0410-961f-82ee72b054a4
* Re-indent in preparation for diff.bryce2000-10-291-36/+36
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37115 138bc75d-0d04-0410-961f-82ee72b054a4
* Re-indent in preparation for diff.bryce2000-10-291-120/+120
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37114 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud