Commit Graph

148 Commits

Author SHA1 Message Date
03b66375f4 add Collections.enumeration(Collection<T> c) 2010-08-16 09:23:48 -06:00
4dc05844df add java.util.Properties.propertyNames() method 2010-08-16 09:23:48 -06:00
f0f35a920f return a useful value from InflaterInputStream.available
Note the following excerpt from PNGFileFormat.java in SWT:

     /*
     * InflaterInputStream does not consume all bytes in the stream
     * when it is closed. This may leave unread IDAT chunks. The fix
     * is to read all available bytes before closing it.
     */
     while (stream.available() > 0) stream.read();
     stream.close();

This code relies on the documented behavior of
InflaterInputStream.available, which must return "0 after EOF has been
reached, otherwise always return 1".  This is unlike
InputStream.available, which is documented to return "the number of
bytes that can be read (or skipped over) from this input stream
without blocking by the next caller of a method for this input
stream", and says nothing about how many bytes are left until the end
of stream.

This commit modifies InflaterInputStream.available to behave according
to Sun's documentation.
2010-08-04 18:54:47 -06:00
112e2a71d5 update copyright years 2009-12-05 15:50:23 -07:00
99a1c12682 Files to add Deflater and DeflaterOutputStream to java.util.zip for
avian
2009-12-04 12:01:31 -07:00
6118792ffd update copyright years 2009-12-02 19:08:29 -07:00
6475beda83 don't null out array in HashMap when size drops to zero
As in ArrayList, we want to avoid thrashing in cases where the map is frequently emptied and refilled.
2009-11-19 12:55:53 -07:00
adcac443e4 don't null out array in ArrayList when size goes to zero
This avoids thrashing in the case of a list which is frequently
emptied and refilled with a small number of elements.
2009-11-19 11:43:11 -07:00
6fa25f992c Properties.setProperty should return an Object 2009-09-18 17:51:05 -06:00
0a96f4c552 ensure WeakHashMap.MyCell objects are registered with the ReferenceQueue 2009-09-01 17:22:31 -06:00
4c14a9ab66 implement enough of java.util.regex to ensure String methods work for trivial regular expressions 2009-08-20 11:14:05 -06:00
6d54b6cec8 add classes which I meant to add in earlier commits 2009-08-14 08:51:10 -06:00
590238bbfc add indexOf and lastIndexOf methods to java.util.List 2009-08-04 17:58:31 -06:00
0a7f94abfe add java.util.Collection.toArray() 2009-08-04 17:36:25 -06:00
7911989055 add AbstractList and AbstractSequentialList classes to java.util and listIterator methods to java.util.List 2009-08-04 17:24:29 -06:00
93597a4d1d implement ArrayList.listIterator() 2009-08-04 11:34:46 -06:00
08dd7d0a5a Merge branch 'gnu' 2009-08-03 09:01:16 -06:00
30be3945ae update copyright year in TreeMap.java 2009-07-27 07:55:28 -06:00
f869e5be21 Merge branch 'master' into gnu
Conflicts:

	classpath/java/util/TreeSet.java
2009-07-25 18:38:57 -06:00
d3a249a3fa Merge branch 'master' of oss.readytalk.com:/var/local/git/avian 2009-07-25 18:36:27 -06:00
d327f6ba5a implement java.util.TreeMap 2009-07-25 15:41:43 -06:00
e72ff8db0b Merge branch 'master' into gnu
Conflicts:

	src/compile.cpp
2009-07-11 12:11:59 -06:00
ab5ba9c954 Merge branch 'master' of oss.readytalk.com:/var/local/git/avian 2009-07-10 09:57:29 -06:00
c3c06e4e0e Fix mac build
Remove a compiler error by removing an unnecessary method
2009-06-19 13:43:57 -06:00
d0f11cd2e5 move non-standard classes to avian package 2009-06-04 17:59:34 -06:00
98be5c509e more progress towards GNU Classpath compatibility 2009-06-03 16:17:55 -06:00
9d6a3021ca make Hashtable.toString synchronized 2009-05-31 14:16:08 -06:00
66c4867f18 more work on continuation support 2009-05-05 18:29:05 -06:00
abc9da9b31 Merge branch 'master' of oss.readytalk.com:/var/local/git/avian 2009-04-27 14:19:53 +00:00
4091e871a7 tolerate null caller in Logger.log 2009-04-25 20:14:29 -06:00
ed4c24c7f6 Removed temp files 2009-04-22 16:27:58 -06:00
6b89ecd0ee Like a noob, I missed some things... broke the compilation. 2009-04-22 15:24:26 -06:00
f68f1e5888 should be fixed 2009-04-22 11:43:22 -06:00
d6fb1e0c7c Adding changes to fix Map/Collections
Merge branch 'master' of ssh://oss.readytalk.com/var/local/git/avian

Conflicts:

	classpath/java/util/HashMap.java
	classpath/java/util/Map.java
2009-04-22 11:34:32 -06:00
34da6da3db brought in line with Sun's SDK, should no longer break on values call 2009-04-22 10:04:38 -06:00
c5dd57f74c Brought more in line with Sun's SDK 2009-04-22 10:04:23 -06:00
9023899c81 Brought interface in line with Sun 2009-04-22 10:03:53 -06:00
af784f4cbc "Fix" Map.containsKey() and Map.containsValue()
java.util.Map.containsKey() and java.util.Map.containsValue() take
Object parameters, not K and V.  Changed to improve classpath
compatibility.
2009-04-17 08:57:49 -06:00
d1018bf078 update copyright years 2009-03-15 12:02:36 -06:00
1d04fed6de implement Collections.shuffle 2009-03-04 08:18:18 -07:00
bf8c856a3c Partially handle cascading logging levels.
We now maintain a virtual root loger, on which you can set the log
level.  When any logger logs, it finds the effective log level by going
up the parent chain, and finding a meaningful log lvel.  Thus, one can
now do Logger.getLogger("").setLevel(Level.FINER) and set the log level
for all other loggers (that do not specify their own default) to the
level specified.
2009-02-19 15:53:10 -07:00
8c68bc0e1b add logp methods to Logger 2009-02-16 18:11:05 -07:00
7c1a5fe57d add level handling to Logger 2009-02-16 18:10:31 -07:00
d682ccaceb add synchronized map 2009-02-16 17:52:27 -07:00
9ba62e25b9 fix and-ing, or-ing, etc BitSet with variant size 2009-02-16 17:51:37 -07:00
46e19f9c80 Fixed bug where seconds were always zero because % was misspelled as / 2009-02-03 15:30:03 -07:00
63c78d9d84 implement ResourceBundle.getKeys 2008-11-03 15:18:44 -07:00
96d7bf571d implement a few methods to make SWT 3.4 happy 2008-10-10 11:49:28 -06:00
7dbd4903f0 set default locale to en, us 2008-10-09 18:30:24 -06:00
aeafb52bcb add ZipFile(File) constructor and ZipFile.close 2008-10-06 17:30:48 -06:00