Issue Details (XML | Word | Printable)

Key: JAXEN-74
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Unassigned
Reporter: Elliotte Rusty Harold
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
jaxen

//. | /

Created: 17/Feb/05 04:26 PM   Updated: 22/Feb/05 10:00 PM
Component/s: saxpath
Affects Version/s: 1.1
Fix Version/s: 1.1

Time Tracking:
Not Specified


 Description  « Hide
Compiling the expression

//. | /

throws a java.util.NoSuchElementException

As near as I can figure the problem occurs in JaxenHandler.endUnionExpr when the second call to pop() is made.

public void endUnionExpr(boolean create) throws JaxenException
{

if ( create )

{ Expr rhs = (Expr) pop(); // FIXME this next line is dying with a NoSucElementException // with the XPath expression //. | / Expr lhs = (Expr) pop(); push( getXPathFactory().createUnionExpr( lhs, rhs ) ); }

}

Possibly however this is just a symptom of an earlier bug.

The equivalent expression / | //. does not cause a problem.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.