Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Java-SCA-2.0-M5
-
None
Description
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.