You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Gunnar Morling (Jira)" <ji...@apache.org> on 2022/12/21 16:52:00 UTC

[jira] [Created] (FLINK-30478) Don't depend on IPAddressUtil

Gunnar Morling created FLINK-30478:
--------------------------------------

             Summary: Don't depend on IPAddressUtil
                 Key: FLINK-30478
                 URL: https://issues.apache.org/jira/browse/FLINK-30478
             Project: Flink
          Issue Type: Sub-task
          Components: API / Core
            Reporter: Gunnar Morling


The class \{{org.apache.flink.util.NetUtils}} uses the JDK-internal class \{{sun.net.util.IPAddressUtil}}. On current JDKs (16+), this causes issues as access to this class is prevented by default and would require an additional \{{--add-opens}} clause. That's undesirable in particular in cases where we don't control the JVM start-up arguments, e.g. when using Flink embedded into a custom Java application.

I suggest to replace this logic using the [IPAddress|https://github.com/seancfoley/IPAddress/] library (Apache License v2), which implements everything we need without relying on internal classes. I have a patch for that ready and will submit it for discussion.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)