On 01/11/11 21:41, Zhe Wu wrote:
Hi,
I am compiling the latest Oracle Jena Adapter Java APIs against the
following libraries and got
"com.hp.hpl.jena.sparql.engine.binding.BindingMap is abstract; cannot be
instantiated"
jena-arq-2.8.9-incubating-SNAPSHOT-tests.jar
jena-arq-2.8.9-incubating-SNAPSHOT.jar
jena-core-2.6.5-incubating-20111024.095834-16-tests.jar
jena-core-2.6.5-incubating-20111024.095834-16.jar
jena-iri-0.9.0-incubating-20111019.130512-8.jar
Seems like BindingMap is now an interface (it used to be a regular
class). Is this an expected change?
Yes.
BindingMap is now the mutable interface to Bindings.
Use BindingFactory.create() to get a BindingMap - the backing
implementation is currently BindingHashMap.
Changes were made to stop accidental modification to Bindings because,
once created they must not change. Create and set a BindingMap - return
a Binding.
Andy
Thanks,
Zhe
Oracle