A list for the developers of CellML tools

Text archives Help


[cellml-dev] Java CVTerm implementation


Chronological Thread 
  • From: m.taschuk at newcastle.ac.uk (Morgan Taschuk)
  • Subject: [cellml-dev] Java CVTerm implementation
  • Date: Wed, 14 Apr 2010 15:37:13 +0100

Hi Andrew,

> I found the problem - it was just a missing .class file that the
> automatically generated wrapped code assumed was present (it wasn't
> being added to the .jar due to an out of date build script). Now that I
> have fixed this, the tests pass.

Great, thanks. The unit tests work, and that new method to query
existing annotation is exactly what we needed.

I've added a few more tests, but unfortunately there seems to be a
problem with appending children to the Container.

java.lang.RuntimeException: Native code threw exception
at pjm2pcm.rdf_api.Container.appendChild(Native Method)
at cellml_api.CVTerm.addResource(CVTerm.java:229)
at cellml_api.CVTermTest.addResource_test(CVTermTest.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...

Using changeset 921:2e4662b7db8c. The updated tests are at
http://dl.dropbox.com/u/4048178/CVTermTest.zip .

Also, the method getResourceURIs used to return a String[], but at
runtime it complained that it was an Object[], not a String[]. I've
changed the method so that it returns an Object[], but you may refactor
at will. :)

Thanks for your help with this.

Cheers,
Morgan




Archive powered by MHonArc 2.6.18.

Top of page