Hi Hervé,
Looks like the binding validation code is getting confused by the nested
array references. If you add this in Jira I'll try to get it fixed for
the next 1.1 beta release. In the meantime, you should be able to do an
ugly workaround by adding load-method, size-method, and add-method
methods in the class that contains this matrix. So something like
double[] getWeightRow(int i), int weightRowCount(), void
addWeightRow(double []). Then just specify the
load-method/size-method/add-method for the outer collection element,
rather than giving the field="hiddenWeights". You can keep the methods
private to avoid polluting your api.
- Dennis
Dennis M. Sosnoski
SOA, Web Services, and XML
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117
Hervé Bitteur wrote:
Dennis,
I tried your definition, writing the following binding statements :
binding>
<mapping name="network"
class="omr.math.NeuralNetwork">
<collection name="matrix" field="hiddenWeights">
<collection name="row">
<value name="cell"/>
</collection>
</collection>
</mapping>
</binding>
JiBX compiler answered with :
Error: References to collection items must use compatible types:
double cannot be used as double[]; on collection element at (line 12,
col 36, in double-binding.xml)
Error running binding compiler
The line referred to by the message is : <collection name="row">
And the java statement is : private double[][] hiddenWeights;
Any idea ???
Thanks for your help
--
/Hervé
<callto://herve.bitteur> <callto://herve.bitteur>
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users