Re: Review request for JDK-8051540: Convert JAXP functin tests: org.xml.sax to jtreg (testNG) tests

2014-08-28 Thread Michael Kay
, it is a Xalan feature. I've had the impression for some years that the management of JAXP as an interface is far too closely tied up with the management of the JAXP implementations within the JDK. Michael Kay Saxonica m...@saxonica.com +44 (0) 118 946 5893 On 28 Aug 2014, at 04:42, Frank Yuan

Re: new StringBuilder(char)

2014-08-16 Thread Michael Kay
I think the same problem also appears in StringBuffer and has been remarked on repeatedly over the years, e.g. http://osdir.com/ml/java.findbugs.general/2007-02/msg00068.html Michael Kay Saxonica m...@saxonica.com +44 (0) 118 946 5893 On 16 Aug 2014, at 20:17, Louis Wasserman lowas

Re: please review draft JEP: Convenience Factory Methods for Collections

2014-07-19 Thread Michael Kay
a HashTrie, creating a small map using say 5 add() operations is not going to take significantly longer than the builder approach; you can always provide the builder as well for those who want ultimate performance. Michael Kay Saxonica

Re: please review draft JEP: Convenience Factory Methods for Collections

2014-07-18 Thread Michael Kay
cannot extend my code in the natural way by adding one more entry. Michael Kay Saxonica

Re: please review draft JEP: Convenience Factory Methods for Collections

2014-07-18 Thread Michael Kay
On 18 Jul 2014, at 10:09, Wang Weijun weijun.w...@oracle.com wrote: A .with(k, v) to create a new immutable map with an extra pair. Yes, that's the same as my A.add(k,v) - A proposal. Works whether A is mutable or immutable. Michael Kay Saxonica

Re: please review draft JEP: Convenience Factory Methods for Collections

2014-07-17 Thread Michael Kay
I want is to have to rewrite all my code when someone asks me to add a sixth entry to the map initialization! Michael Kay Saxonica m...@saxonica.com +44 (0118) 946 5893 On 17 Jul 2014, at 01:46, Stuart Marks stuart.ma...@oracle.com wrote: Hi all, Please review this draft JEP

Re: FYC: 7197183 : Provide CharSequence.subSequenceView which allows for sub-sequence views of character sequences.

2014-07-17 Thread Michael Kay
In my own product (Saxon) I have a class CharSlice which is pretty much identical to your CharSubSequenceView. So yes, I think it is useful. Michael Kay Saxonica m...@saxonica.com +44 (0118) 946 5893 On 17 Jul 2014, at 01:09, Mike Duigou mike.dui...@oracle.com wrote: Hello all; In Java

Re: please review draft JEP: Convenience Factory Methods for Collections

2014-07-17 Thread Michael Kay
On 17 Jul 2014, at 08:21, Michael Kay m...@saxonica.com wrote: Set.of() and List.of() look very attractive; Map.of() looks very ugly. I would much prefer to write something like Map.of( Map.pair(key, value), Map.pair(key, value), Map.pair(key, value) ); Another style that would

Re: [concurrency-interest] URI + RFC3986 compliance

2014-07-09 Thread Michael Kay
+1. As the author of a library that uses the URI class, I need control over how it is behaving, and I cannot assume that other libraries in the same VM want the same options as I do. Michael Kay Saxonica m...@saxonica.com +44 (0118) 946 5893 On 9 Jul 2014, at 12:10, Alan Bateman alan.bate

Re: RFR: 8049109: Add @since 1.9 to new packages added in jaxp

2014-07-03 Thread Michael Kay
of this absurdity? Michael Kay Saxonica

Re: JDK9 project: XML/JAXP Approachability / Ease of Use

2014-06-26 Thread Michael Kay
is the number of lines of code that are needed to implement a simple task. Tasks that should take one or two lines often take ten or twelve lines instead. Michael Kay Saxonica m...@saxonica.com +44 (0118) 946 5893