RFR: 8301302: Platform preferences API [v5]

Andy Goryachev angorya at openjdk.org
Wed Sep 6 15:12:19 UTC 2023


On Wed, 6 Sep 2023 00:05:58 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:

>> one [possible] use case is when different versions of the native platform have different types (int32/int64 ?).
>> or, if the property value is String with the semantics of an integer.
>> 
>> Of course, the app dev can always request an Object and parse that.
>
> If we add this, we'd also need to decide whether we only want to support lossless conversions, or if lossy conversions are acceptable as well. Since this will add a considerable amount of complexity to this PR, I suggest we don't to it at this time. If there's a need, we can always add it later.

after some thought, I would say conversion is not needed - should that unlikely scenario happen, the app devs could use getValue(.., Object.class);

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1014#discussion_r1317442623


More information about the openjfx-dev mailing list