Skip to content

Conversation

@icodening
Copy link
Contributor

Describe what this PR does / why we need it

修复了在JDK17的环境下IPAddressUtil报错的问题

Does this pull request fix one issue?

Fixes #2691

Describe how you did it

使用httpclient 所提供的工具类org.apache.http.conn.util.InetAddressUtils, 该工具类使用正则的方式校验IP的正确性,不依赖JDK内部实现

Describe how to verify it

不再报错

Special notes for reviews

已在本机复现并测试修复的有效性。
以下为JDK17的复现图
image

@sczyh30 sczyh30 added kind/enhancement Category issues or prs related to enhancement. area/dashboard Issues or PRs about Sentinel Dashboard labels Apr 25, 2022
@sczyh30 sczyh30 changed the title bugfix: error for verify ip bugfix: Refactor IP verify logic in MachineRegistryController of the dashboard Apr 25, 2022
Copy link
Member

@sczyh30 sczyh30 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sczyh30 sczyh30 merged commit 2e17375 into alibaba:master Apr 25, 2022
@sczyh30
Copy link
Member

sczyh30 commented Apr 25, 2022

Nice work. Thanks for contributing!

@Lepton-Lee
Copy link

1.8.4在JDK17环境下仍然报错
image

@icodening
Copy link
Contributor Author

1.8.4是4月12日发布的, 但这个代码是4月25日合并的 . 你可以试试用master分支

@Lepton-Lee
Copy link

1.8.4是4月12日发布的, 但这个代码是4月25日合并的 . 你可以试试用master分支

回退JDK了🥲 感谢

@sczyh30 sczyh30 modified the milestones: 2.0.0, 1.8.5 Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/dashboard Issues or PRs about Sentinel Dashboard kind/enhancement Category issues or prs related to enhancement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Java 17 环境下 Sentinel 1.8.4 无法监测到服务并抛出 IllegalAccessError

3 participants