Please Review: 6984084 (str) n times repetition of character constructor for java.lang.String

2012-08-21 Thread Jim Gish
and the resulting non-lambda classes moved here for review. There will be a separate change and review for the StringJoiner changes in lamda-dev. Thanks, Jim -- Jim Gish | Consulting Member of Technical Staff | +1.781.442.0304 Oracle Java Platform Group | Core Libraries Team 35 Network Drive

Re: Request for simple review of launcher tests 7189944

2012-08-08 Thread Jim Gish
of failing tests. http://cr.openjdk.java.net/~ksrini/7189944/webrev.0/ Thanks Kumar -- Jim Gish | Consulting Member of Technical Staff | +1.781.442.0304 Oracle Java Platform Group | Core Libraries Team 35 Network Drive Burlington, MA 01803 jim.g...@oracle.com

Re: RFR: 7186111 fix test java/rmi/activation/ActivationSystem/unregisterGroup/UnregisterGroup

2012-07-27 Thread Jim Gish
that, the code and the changes are actually pretty simple. s'marks -- Jim Gish | Consulting Member of Technical Staff | +1.781.442.0304 Oracle Java Platform Group | Core Libraries Team 35 Network Drive Burlington, MA 01803 jim.g...@oracle.com

RFR: 691423 - (str) Missing synchronization in java.lang.String#contentEquals(CharSequence)

2012-07-26 Thread Jim Gish
) { + return contentEquals((AbstractStringBuilder)cs); +} +} else { +return contentEquals((AbstractStringBuilder)cs); } -return true; } // Argument is a String if (cs.equals(this)) -- Jim Gish

Re: RFR: 691423 - (str) Missing synchronization in java.lang.String#contentEquals(CharSequence)

2012-07-26 Thread Jim Gish
OK. With that in mind, here's an update where I leave contentEquals( StringBuffer ) in place (adding a clarifying spec), and defer the synchronization as I had it to the contentEquals( CharSequence ) method: diff --git a/src/share/classes/java/lang/String.java

Re: Review Request: CR 7100996 - (spec str) IndexOutOfBoundsException when using a StringBuffer from multiple threads

2012-06-25 Thread Jim Gish
Hopefully, this will address most, if not all of the suggestions made to date. Jim diff -r f37afaa214e9 src/share/classes/java/lang/StringBuffer.java --- a/src/share/classes/java/lang/StringBuffer.javaMon Jun 25 14:22:42 2012 -0400 +++ b/src/share/classes/java/lang/StringBuffer.java

Re: Review Request: CR 7100996 - (spec str) IndexOutOfBoundsException when using a StringBuffer from multiple threads

2012-06-25 Thread Jim Gish
, contained in the string buffer, does not exceed Missing comma at 2 locations of: * object but does not synchronize on the source ({@code sb}). * object, but does not synchronize on the source ({@code sb}). -Ulf Am 25.06.2012 21:32, schrieb Jim Gish: Hopefully, this will address most

Review Request: CR 7100996 - (spec str) IndexOutOfBoundsException when using a StringBuffer from multiple threads

2012-06-21 Thread Jim Gish
sequence contained in the string buffer does not exceed * the capacity, it is not necessary to allocate a new internal -- Jim Gish | Consulting Member of Technical Staff | +1.781.442.0304 Oracle Java Platform Group | Core Libraries Team 35 Network Drive Burlington, MA 01803 jim.g...@oracle.com

Re: Review Request: CR 7100996 - (spec str) IndexOutOfBoundsException when using a StringBuffer from multiple threads

2012-06-21 Thread Jim Gish
that StringBuffer.add/insert has a Jim, You may want to replace add with append if you are intending to reference the actual method name and not the generic operation. Additionally, you may want to use {@code ...} to show this context. Thanks, Dave -- Jim Gish | Consulting Member of Technical Staff

Re: Review Request: CR 7100996 - (spec str) IndexOutOfBoundsException when using a StringBuffer from multiple threads

2012-06-21 Thread Jim Gish
be satisfied Mike On Jun 21 2012, at 11:10 , Jim Gish wrote: Taking all the previous comments into consideration, here's an update: diff -r fc575c78f5d3 src/share/classes/java/lang/StringBuffer.java --- a/src/share/classes/java/lang/StringBuffer.javaSun Jun 10 10:29:27 2012 +0100 +++ b/src/share

Re: specification for null handling in String, StringBuilder, etc.

2012-06-12 Thread Jim Gish
On 06/12/2012 01:40 AM, David Holmes wrote: Hi Jim, On 12/06/2012 7:59 AM, Jim Gish wrote: While triaging outstanding String bugs, I was looking at 4247235, (spec str) StringBuffer.insert(int, char[]) specification is inconsistent Although the description is out of date w.r.t. the current

hashing and Bug 6932858

2012-06-12 Thread Jim Gish
I'm triaging all outstanding String bugs/RFEs. In light of Mike's recent changes to hashing, I'm seeking opinions on what should be done with bug # 6932858 -- (str) Tune hashCode() of String. Although we can't change the specification for String.hashCode(), we would certainly be willing to

specification for null handling in String, StringBuilder, etc.

2012-06-11 Thread Jim Gish
places) and tell the user straight off the effect of passing null. Cheers Jim Gish

Re: Request for Review : CR#6924259: Remove String.count/String.offset

2012-05-25 Thread Jim Gish
On 05/25/2012 09:48 AM, Mike Duigou wrote: A non-material comment is that there are a couple of style changes that I found annoying. Everyone is an expert on such matters, I'm not, but the one that bugged me a bit was adding the space after the cast, eg: (toffset (long) value.length - len) I

Re: RFR: 5015163 (str) String merge/join that is the inverse of String.split() into JDK 8

2012-05-03 Thread Jim Gish
I'm just now reading State of the Lambda and beginning to get a handle on this discussion, which makes sense to me today (and didn't yesterday morning). (All this stuff about reduce is definitely taking me back to my APL days. s - ./list -- a concat/reduce operation (sans the delimiter of

RFR: 5015163 (str) String merge/join that is the inverse of String.split() into JDK 8

2012-04-27 Thread Jim Gish
. Thanks, Jim Gish

Re: RFR: 7160725 - Strange or obsolete @see tags in some exception java.lang javadoc

2012-04-19 Thread Jim Gish
. David On 19/04/2012 5:47 AM, Jim Gish wrote: I've updated the copyrights to just have first and current year. Jim On 04/18/2012 03:33 PM, Jim Gish wrote: Description: Another trivial javadoc update - fixed existing @see ref and added a few more representative of the exception usage Patch

RFR: 7160714 - Strange or obsolete @see tags in some exception java.util javadoc

2012-04-18 Thread Jim Gish
Description: just a trivial change to add in Iterator#next() as a @see reference (Alan and I discussed the possibilities here of completeness vs brevity, and we opted for brevity. There are actually other uses, particularly in Deque , and Queue but thought it best to keep it simple)

RFR: 7160725 - Strange or obsolete @see tags in some exception java.lang javadoc

2012-04-18 Thread Jim Gish
java.lang.Float#Float(String) + * @see java.lang.Integer#parseInt(String) * @since JDK1.0 */ public Thanks, Jim Gish

Re: RFR: 7160714 - Strange or obsolete @see tags in some exception java.util javadoc

2012-04-18 Thread Jim Gish
I've updated the copyrights to just have first and current year. Jim On 04/18/2012 03:15 PM, Jim Gish wrote: Description: just a trivial change to add in Iterator#next() as a @see reference (Alan and I discussed the possibilities here of completeness vs brevity, and we opted for brevity

Re: RFR: 7160725 - Strange or obsolete @see tags in some exception java.lang javadoc

2012-04-18 Thread Jim Gish
I've updated the copyrights to just have first and current year. Jim On 04/18/2012 03:33 PM, Jim Gish wrote: Description: Another trivial javadoc update - fixed existing @see ref and added a few more representative of the exception usage Patch: diff -r 00f5665ee0ea src/share/classes/java

Re: RFR 7116200: (cs) test/java/nio/charset/coders/StreamTimeout.java fails with Address already in use

2012-04-12 Thread Jim Gish
good. Just some background on this one. Jim Gish just recently moved into the JDK team in Oracle (he was in WebLogic land). I suggested a few bugs to get used to building the JDK, running the tests, learning the processes etc. Now that you've clean-ed up this test it means I need to go find

<    1   2