gcc/libjava
Bryce McKinlay 3a73757880 AbstractCollection.java (addAll): Use size() instead of hasNext() in iterator loop.
2000-10-29  Bryce McKinlay  <bryce@albatross.co.nz>

	* 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.

From-SVN: r37116
2000-10-29 05:06:10 +00:00
..
doc
gcj Rebuilt Makefile.ins 2000-10-06 01:57:45 +00:00
gnu Makefile.am: Added locale files from Classpath. 2000-10-27 10:33:46 +00:00
include re GNATS libgcj/341 (Throwable.printStackTrace() isn't working) 2000-10-09 02:54:50 +01:00
java AbstractCollection.java (addAll): Use size() instead of hasNext() in iterator loop. 2000-10-29 05:06:10 +00:00
libltdl
scripts
sysdep
testsuite New test code 2000-10-09 02:20:28 +00:00
acconfig.h
acinclude.m4 configure.in (LIBDATASTARTSPEC): Use `%s' to search for libgcjdata.a. 2000-09-13 19:01:20 +00:00
aclocal.m4 Looks like Tom forgot to check this in... 2000-09-14 08:01:12 +00:00
addr2name.awk
boehm.cc natField.cc (BooleanClass): Don't define. 2000-10-06 01:49:32 +00:00
ChangeLog AbstractCollection.java (addAll): Use size() instead of hasNext() in iterator loop. 2000-10-29 05:06:10 +00:00
ChangeLog-1999
chartables.pl
configure Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool. 2000-10-25 23:11:38 +01:00
configure.host
configure.in Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool. 2000-10-25 23:11:38 +01:00
COPYING
defineclass.cc From Arno J. Klaassen: 2000-10-20 23:25:57 +00:00
exception.cc exception.cc: Don't #include "exception". 2000-10-13 05:45:57 +01:00
gij.cc
interpret.cc From Arno J. Klaassen: 2000-10-20 23:25:57 +00:00
jni.cc natField.cc (BooleanClass): Don't define. 2000-10-06 01:49:32 +00:00
LIBGCJ_LICENSE
libgcj-test.spec.in
libgcj.spec.in Implement bitmap descriptor based marking for Boehm GC. 2000-09-30 10:56:58 +01:00
libgcjdata.c
libtool-version
Makefile.am Makefile.am: Added locale files from Classpath. 2000-10-27 10:33:46 +00:00
Makefile.in Makefile.am: Added locale files from Classpath. 2000-10-27 10:33:46 +00:00
mauve-libgcj
name-finder.cc re GNATS libgcj/341 (Throwable.printStackTrace() isn't working) 2000-10-09 02:54:50 +01:00
NEWS
no-threads.cc
nogc.cc Implement bitmap descriptor based marking for Boehm GC. 2000-09-30 10:56:58 +01:00
posix-threads.cc posix-threads.cc (_Jv_CondWait): Check to see if we are interrupted before modifying the cv's wait set. 2000-09-30 11:01:04 +01:00
posix.cc
prims.cc natField.cc (BooleanClass): Don't define. 2000-10-06 01:49:32 +00:00
README
resolve.cc natField.cc (BooleanClass): Don't define. 2000-10-06 01:49:32 +00:00
THANKS
win32-threads.cc

This is libgcj: the runtime library for gcj, the GNU Compiler for Java. 
libgcj provides a partial implementation of the Java Class Libraries.

libgcj is free software.  See the file LIBGCJ_LICENSE for copying permission.


DOCUMENTATION
=============

All documentation, including detailed installation and usage instructions,
can be found on the gcj web pages at this URL:

		http://sourceware.cygnus.com/java/


REQUIREMENTS
============

libgcj must be built with a compatible version of the gcc compiler. libgcj
releases are usually numbered according to their corresponding gcc release.
For example, if this is "libgcj 2.95.3", you need to build it using "gcc
2.95.3".


QUICK INSTALLATION
==================

  > mkdir build
  > cd build
  > ../libgcj/configure --enable-threads=<THREADS_TYPE> --prefix=<DIR>
  > make
  > make install

where:

<THREADS_TYPE> specifies the threads library to be used by libgcj. Currently 
the possible values are "posix" and "none". This value must be the same as
the value used when configuring gcc itself.

<DIR> specifies the installation directory. This should be the same location 
as where gcc is installed.

Consult the gcj web pages for additional "configure" arguments.

NOTE: libgcj can not be built in the same directory as `configure'. You must 
create a separate build directory. 


BUGS
====

Please submit bug reports via this URL:

	http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?database=java