[
https://issues.apache.org/jira/browse/TUSCANY-3645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kelvin Goodson updated TUSCANY-3645:
------------------------------------
Fix Version/s: Java-SCA-2.0-Beta1
Affects Version/s: Java-SCA-2.0-M5
Component/s: Java SCA Core Runtime
> otest JCA9013 fails to fail for invalid property type
> -----------------------------------------------------
>
> Key: TUSCANY-3645
> URL: https://issues.apache.org/jira/browse/TUSCANY-3645
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-2.0-M5
> Reporter: Kelvin Goodson
> Fix For: Java-SCA-2.0-Beta1
>
>
> Test assertion JCA-TA-9033 requires the line of code ...
> componentContext.getProperty(HashSet.class, "floatProperty");
> ... to fail with an IllegalArgumentException. The property value set is
> expressed as a DOM with type xsd:float. The line of code does not throw an
> exception, but returns an empty HashSet. I discussed this with Mike Edwards
> who reconsidered whether HashSet was the best complex type to provoke the
> failure, since it may be considered correct in the case of such collection
> types that are inherently generic to create a collection of
> HashSet<propertyType> containing the property value. (Note that the code does
> not do this, but only returns and empty HashSet, so we have a problem anyway)
> I tried the modified test with Date.class, but the modified line of code
> persisted in failing to throw an exception.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.