[
https://issues.apache.org/jira/browse/FLINK-30478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chesnay Schepler closed FLINK-30478.
------------------------------------
Fix Version/s: 1.18.0
Assignee: Sergio Morales (was: Gunnar Morling)
Resolution: Fixed
master: c02fcfbf9f3b05f62543dbf88af33617f68fb953
> 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: Sergio Morales
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.18.0
>
>
> 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)