Tim Ward
Tim Ward
I think that what you’re looking for is a scalar mapping for `Optional` where: * `null` becomes an empty optional * A value is converted to a `T` * A...
>> A value that cannot be converted triggers a failure (failure handlers etc) > The use-case for Optional is that they do not generate a failure: > > https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Optional.html >...
> Is there a way to handle this exception with the Rule method in the Converterbuilder? You’re looking for an error handler. https://docs.osgi.org/specification/osgi.cmpn/7.0.0/util.converter.html#d0e147674
> I can't find any reference for this in the Javadoc or any other official documentation... You probably can use it for that but that's not its primary use-case. `Optional`...
> I can only repeat that for me as a user, an empty optional exactly express that, for what other purpose I should want to use it? String timeout =...
> @timothyjward As an OSGi expert, could you please at least verify if my assumption and approach for the fix is correct? Hi - I think the extender requirements that...
I have agreed with @bosschaert to pick up the pen on this one.
Closing as the specification chapter, RI and TCK are all complete
@muthukumar1756 - please open a new issue for usage questions. This issue is a design discussion for a new feature in the OSGi core specification.
> I find it hard to believe you think this is a good solution? :-) it means every time dependabot has a new dependency that occurs in your test, we...