[
https://issues.apache.org/jira/browse/FLINK-30478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated FLINK-30478:
-----------------------------------
Labels: pull-request-available (was: )
> 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
> Assignee: Gunnar Morling
> Priority: Major
> Labels: pull-request-available
>
> 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)