[fractal-adl] AttributeLoader message error doesn't print the name of the wrong parameter
Latestest version of FractalADL (2.3.1) seems to not to print the name of an argument not being found.
For instance, consider this ADL:
<content
class="org.objectweb.fractal.bf.connectors.jms.Broker" />
<attributes
signature="org.objectweb.fractal.bf.connectors.jms.BrokerAttributes">
The BrokerAttributes attribute controller class doesn't provide a getConnector method method. When the ADL factory tries to load it, the stacktrace might be improved by printing also the name of the attribute that was not found. Infact, we see something like:
org.objectweb.fractal.adl.ADLException: No such attribute (org/objectweb/fractal/bf/connectors/jms/Broker.fractal:11) at org.objectweb.fractal.adl.attributes.AttributeLoader.checkAttributesContainer(AttributeLoader.java:119) at ////CUT//// Caused by: java.lang.NoSuchMethodException: org.objectweb.fractal.bf.connectors.jms.BrokerAttributes.getConnector() at java.lang.Class.getMethod(Class.java:1581) at org.objectweb.fractal.adl.attributes.AttributeLoader.checkAttributesContainer(AttributeLoader.java:117) ... 29 more
Ideally, I would have liked it more with something like: org.objectweb.fractal.adl.ADLException: No 'connector' attribute defined by 'BrokerAttributes' (org/objectweb/fractal/bf/connectors/jms/Broker.fractal:11)
or something like that.