Re: RFR 8024707: TRANSFORMEREXCEPTION : ITEM() RETURNS NULL WITH NODE LIST OF LENGTH =1 IN JAXP

2013-09-30 Thread huizhe wang
Aleksej, The change looks good. Thanks, Joe On 9/28/2013 7:54 AM, Aleksej Efimov wrote: Joe, Thank you for a suggestion. But I modified it a little bit: public Node item(int index) { if (m_iter != null) { -int node; +int node = 0; int

Re: RFR 8024707: TRANSFORMEREXCEPTION : ITEM() RETURNS NULL WITH NODE LIST OF LENGTH =1 IN JAXP

2013-09-28 Thread Aleksej Efimov
Joe, Thank you for a suggestion. But I modified it a little bit: public Node item(int index) { if (m_iter != null) { -int node; +int node = 0; int count = m_cachedNodes.size(); if (count index) { node =

Re: RFR 8024707: TRANSFORMEREXCEPTION : ITEM() RETURNS NULL WITH NODE LIST OF LENGTH =1 IN JAXP

2013-09-25 Thread Aleksej Efimov
Hi Joe, Your suggestion about getLength() brings to mine attention the following behavior of unmodified JDK: If we slightly modify a TestFunc class [1] in such manner: public static Node test( NodeList list ) { Node ret = list.item(0);

Re: RFR 8024707: TRANSFORMEREXCEPTION : ITEM() RETURNS NULL WITH NODE LIST OF LENGTH =1 IN JAXP

2013-09-25 Thread Joe Darcy
PLEASE DON'T REFER TO BUGS USING A SUMMARY THAT IS ALL IN CAPITAL LETTERS. -Joe On 9/25/2013 4:10 AM, Aleksej Efimov wrote: Hi Joe, Your suggestion about getLength() brings to mine attention the following behavior of unmodified JDK: If we slightly modify a TestFunc class [1] in such manner:

Re: RFR 8024707: TRANSFORMEREXCEPTION : ITEM() RETURNS NULL WITH NODE LIST OF LENGTH =1 IN JAXP

2013-09-19 Thread huizhe wang
Hi Aleksej, Looks like the getLength() method has the same problem. Joe On 9/17/2013 5:01 AM, Aleksej Efimov wrote: Hi Everyone, There is a bug [1] in JAXP about transformation of one-item sized node list: When the length of nodelist which is passed to a XSLT extension function is 1, the

RFR 8024707: TRANSFORMEREXCEPTION : ITEM() RETURNS NULL WITH NODE LIST OF LENGTH =1 IN JAXP

2013-09-17 Thread Aleksej Efimov
Hi Everyone, There is a bug [1] in JAXP about transformation of one-item sized node list: When the length of nodelist which is passed to a XSLT extension function is 1, the node gotten from the node list becomes null. New test illustrates this issue [2]. Full webrev with proposed fix can be