BaseXdb/basex — Issue #336: Java Binding Broken
Author: LeoWoerteler
Created: 2012-01-18 13:34:42+00:00
State: open
Labels: bug, XQuery

The `iter(ctx)` method of the class `JavaFunc` was removed, which results in most calls to Java functions hanging in an infinite loop.

Example:
-------------

```xquery
"java:java.lang.Math":random()
```

This fails with:
-------------------

java.lang.StackOverflowError
org.basex.query.expr.ParseExpr.iter(ParseExpr.java:57)
org.basex.query.expr.ParseExpr.item(ParseExpr.java:65)
org.basex.query.expr.ParseExpr.iter(ParseExpr.java:57)
...