|
From: Abbett, J. <Jon...@ch...> - 2005-11-10 16:24:54
|
I have a method that takes a BigInteger as input, but I can't seem to
get a BigInteger in there. A code fragment:
=20
$docRef =3D $factory->createDocumentReferenceType();
$bigint =3D new java_class("java.math.BigInteger");
$docRef->setVersion($bigint->valueOf(1));
=20
I get an exception on that last line, which is reported in the PHP error
log:
=20
PHP Fatal error: Uncaught [class java.lang.Exception:
java.lang.Exception: Invoke failed:
[org.chip.ping.xml.annotation.impl.DocumentReferenceTypeImpl@15b44d6]->s
etVersion(class java.lang.Double). Cause:
java.lang.IllegalArgumentException: argument type mismatch]
...
=20
It looks like the PHP-Java Bridge is transforming my BigInteger into a
java.lang.Double. How do I prevent this from happening? What
alternatives do I have?
=20
Thanks,
Jon Abbett
=20
=20
=20
=20
|