Subject: Re: Efficiency: predicate vs function
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Thu, 9 Aug 2007 19:42:17 +0100
|
On 8/9/07, iwanttokeepanon <iwanttokeepanon@xxxxxxxxx> wrote:
> > [1] http://andrewjwelch.com/code/xslt/sudoku/sudoku-solver.html
>
> I tried running this in:
> Saxon 8.9J from Saxonica
> java version "1.4.2-03"
> (build Blackdown-1.4.2-03, mixed mode)
>
> and I get:
> Exception in thread "main" java.lang.NoSuchMethodError:
> java.math.BigDecimal.<init>(J)V
> at net.sf.saxon.value.Int64Value.getDecimalValue(Int64Value.java:311)
> at net.sf.saxon.expr.Calculator$DecimalTimesDecimal.compute(Calculator.java:635)
> at net.sf.saxon.expr.ArithmeticExpression.evaluateItem(ArithmeticExpression.java:237)
> .....
>
> How can it fail on BigDecimal? The stack trace is quite long and I
> don't want to post it all unless it will help.
>
> Any ideas?
It's a known bug:
http://sourceforge.net/tracker/index.php?func=detail&aid=1707376&group_id=29872&atid=397617
The fix is to use Saxon 8.9.0.4 (or upgrade to Java 1.5)
--
http://andrewjwelch.com
|