basex icon indicating copy to clipboard operation
basex copied to clipboard

xquery:fork-join vs. WeakTokenSet?

Open ChristianGruen opened this issue 5 months ago • 1 comments

The WeakTokenSet class may return null references:

[xquery:error] Unexpected error: java.lang.NullPointerException:
Cannot invoke "org.basex.util.hash.WeakTokenSet$WeakTokenRef.get()"
  because "this.keys[i]" is null

It is unclear how to reproduce this. It could be caused by xquery:fork-join calls, which run multiple XQuery functions at the same time.

Introduced with the switch to JDK 17.

ChristianGruen avatar Aug 13 '25 08:08 ChristianGruen