Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The BlueprintMetadata_getBlueprintContainer method throws IllegalArgumentException as follow:
BlueprintMetadata.java
if (serviceReferences == null || serviceReferences.length <1) { throw new IllegalArgumentException("Invalid BlueprintContainer service id: " + containerServiceId); }
However, the FrameworkUtils_resolveService method throws IOException for the same condition:
FrameworkUtils.java
if (references == null || references.length < 1) { throw new IOException("Service with id [" + serviceId + "] not found"); } else { result = references[0]; }
This is confusing. Indeed, I notice that the buggy code of ARIES-333 throws IllegalArgumentException, but the fixed code throws IOException.
The current BlueprintMetadata.java shall be modified to eliminate the confusing.