Re: HashMap implementations and Integer specializations

2008-06-08 Thread Peter Arrenbrecht
Typo: testPutPreversesObjectIdentity On Mon, Jun 9, 2008 at 12:13 AM, Martin Buchholz <[EMAIL PROTECTED]> wrote: > JavaOne 2008 technical session PDFs are now available > > http://developers.sun.com/learning/javaoneonline/j1online.jsp?track=javase&yr=2008 > > I was surprised to discover a discussi

Re: HashMap implementations and Integer specializations

2008-06-08 Thread Ismael Juma
Martin Buchholz <[EMAIL PROTECTED]> writes: > I was surprised to discover a discussion of > HashMap optimization at the JavaOne talk > http://developers.sun.com/learning/javaoneonline/2008/pdf/TS-6434.pdf > > Did I miss an announcement of that? I noticed a commit related to that a few weeks ago[1

HashMap implementations and Integer specializations

2008-06-08 Thread Martin Buchholz
JavaOne 2008 technical session PDFs are now available http://developers.sun.com/learning/javaoneonline/j1online.jsp?track=javase&yr=2008 I was surprised to discover a discussion of HashMap optimization at the JavaOne talk http://developers.sun.com/learning/javaoneonline/2008/pdf/TS-6434.pdf Did

NavigableMap implementation bugs

2008-06-08 Thread Martin Buchholz
Doug and Josh and Chris, (Chris, please file a bug) TreeMap.navigableKeySet().subSet(x,y).remove(o) fails because TreeMap.KeySet.subset calls the TreeSet(NavigableMap) constructor, and that requires an argument map not containing arbitrary value objects for correctness. This correctness is probab

Re: Append-mode I/O on Windows and process I/O redirection

2008-06-08 Thread Martin Buchholz
On Sun, Jun 8, 2008 at 2:46 AM, Alan Bateman <[EMAIL PROTECTED]> wrote: > Martin Buchholz wrote: >> Perhaps it is easiest to implement append mode by using the current >> code that uses FileOutputStream and extracts the HANDLE from that, >> but at the last moment replacing the HANDLE with a new HAN

Re: Append-mode I/O on Windows and process I/O redirection

2008-06-08 Thread Alan Bateman
Martin Buchholz wrote: : When I first implemented this, keeping track of append mode throughout various software layers was a burden. I guess the output streams and channels will have to know whether they are in append mode or not. FileOutputStream and FileChannelImpl used to know this before

hg: jdk7/tl/jdk: 6 new changesets

2008-06-08 Thread alan . bateman
Changeset: f570cbc8d4ff Author:alanb Date: 2008-06-05 14:44 +0100 URL: http://hg.openjdk.java.net/jdk7/tl/jdk/rev/f570cbc8d4ff 4939819: File.canWrite() returns false for the "My Documents" directory (win) Reviewed-by: iris ! src/windows/native/java/io/WinNTFileSystem_md.c ! test/ja