RFR: 8303485: Replacing os.name for operating system customization [v7]

Andrey Turbanov aturbanov at openjdk.org
Mon Mar 27 14:22:09 UTC 2023


On Mon, 27 Mar 2023 13:26:22 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> src/java.base/unix/classes/java/lang/ProcessImpl.java line 97:
>> 
>>> 95:      * @throw Error if the requested launch mechanism is not found or valid
>>> 96:      */
>>> 97:     @SuppressWarnings("removal")
>> 
>> What is deprecated for removal in this method?
>
> `GetPropertyAction::privilegedGetProperty` has been marked deprecated for removal because it uses the SecurityManager

As I can see it uses deprecated `SecurityManager`, but it's not deprecated itself.
Do I miss something? Or javac generates warning even in such cases?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/12931#discussion_r1149314439


More information about the net-dev mailing list