Comments (10)
Released v1.6.1
: JDK 17
support improvement
https://github.com/alibaba/java-dns-cache-manipulator/releases/tag/v1.6.1
add below java options for JDK 17:
--add-opens java.base/java.net=ALL-UNNAMED
--add-opens java.base/sun.net=ALL-UNNAMED
remove sun.net.util.IPAddressUtil
dependency, simplify JDK 17
usage, so no need java option --add-opens java.base/sun.net.util=ALL-UNNAMED
from java-dns-cache-manipulator.
Jdk 9及以上的支持 还没做, 😩
要不要 来搞一下? ❤️
from java-dns-cache-manipulator.
我今天改了下代码,发现最后由于jdk9以上的modul的封装问题,没有权限修改java.base中的反射,我可以先把代码提交一下
@oldratlee
from java-dns-cache-manipulator.
Hi!
I apologize for writing in English, but better than trying to copy&paste here what Google Translate would give...
Anyway, I ended up here because I needed the exact functionality this library provides! Thanks for open-sourcing it!
But as you might have guessed, I would need support for JDK9+ (just 11 to be specific).
Reflection on java.net gives nasty warnings in JDK 11, but still works. If one does not like the warnings, can use --add-opens java.base/java.net=ALL-UNNAMED
as a VM option (ugly, but still better than nothing). Or is there some other issue here that prevents supporting JDK11?
This issue and PR is 1 year old. So I guess it will not be merged and new release of library will be made?
That's understandable. But just wanted to double-check with you before spending time re-implementing something equivalent
again, thanks!
from java-dns-cache-manipulator.
@arcuri82
Hi!
Thank you replay this issue.I Test this branch at environment jdk9 cant run.but i test jdk11 can run.this you answer.
i will review this code and test jdk11 and jdk 13 to run at this week, i would't to support jdk9 or jdk 10. so if you can wait,i will try again.
from java-dns-cache-manipulator.
excellent! thx!
I am only interested in LTS versions of the JDK (ie 8 and 11, where the next one will be 17 in a couple of years). I have no interest in 9 and 10... so that's good :)
from java-dns-cache-manipulator.
@arcuri82 @oldratlee #51 you can see this PR. the 50 PR because i have change name so you can't see it. i fix some bug and change some test unit case that make new PR. if you want use. you can package yourself.
from java-dns-cache-manipulator.
@antfling @arcuri82 and @ethanmnrd #51 (comment)
JDK 11 is supported at v1.6.0-RC1
:
https://github.com/alibaba/java-dns-cache-manipulator/releases/tag/v1.6.0-RC1
If there is any problems in use JDK 11
, we can continue the discussion at this issue.
This issue and PR is 1 year old. So I guess it will not be merged and new release of library will be made?
sorry for my slooooow reply 😖 , and thanks for all your concern.
from java-dns-cache-manipulator.
I am only interested in LTS versions of the JDK (ie 8 and 11, where the next one will be 17 in a couple of years).
I have tested v1.6.0-RC1
under JDK 17
(17.0.0-ms
and 17.0.0.35.2-amzn
),
and the test successed with --add-opens
options, like:
--add-exports java.base/sun.net=ALL-UNNAMED
--add-exports jdk.unsupported/sun.misc=ALL-UNNAMED
--add-exports java.base/jdk.internal.misc=ALL-UNNAMED
--add-exports java.base/java.net=ALL-UNNAMED
--add-opens java.base/java.net=ALL-UNNAMED
--add-opens java.base/sun.net=ALL-UNNAMED
...
I am going to find out the minimus option set to run java-dns-cache-manipulator
properly.
from java-dns-cache-manipulator.
I am going to find out the minimus option set to run
java-dns-cache-manipulator
properly.
I found out a minimus option set to run java-dns-cache-manipulator
under jdk17 properly:
--add-opens java.base/java.net=ALL-UNNAMED
--add-opens java.base/sun.net=ALL-UNNAMED
--add-opens java.base/sun.net.util=ALL-UNNAMED
java-dns-cache-manipulator/scripts/common_build.sh
Lines 33 to 38 in 3fb6411
Add JDK 17 into AppVeyor CI
and succeed:
from java-dns-cache-manipulator.
Related Issues (20)
- Issue on GitHub Actions with latest Zulu 8u352 JDK HOT 7
- support more config file, eg: user scope or setting by -D option
- provide package manager support, like brew etc.
- support jdk 9 HOT 1
- Support config file name setting by -D option
- use specification test framework(BDD) rewrite unit test HOT 1
- 使用SSM整合HttpClient,使用工具包设置DNS,打印出来的DNS为最新的,但是请求时调用的DNS为缓存的设置 HOT 3
- 多个jvm进程怎么共享一个dns?
- how to share dns in all jvm process? HOT 1
- 可以使用这个开发成1个dns服务器 HOT 1
- 什么时候可以支持 JKD 11 呢 HOT 2
- Fix "argument_count" issue in tool/src/main/java/com/alibaba/dcm/tool/DcmTool.java
- Fix "similar-code" issue in library/src/main/java/com/alibaba/dcm/agent/DcmAgent.java
- Fix "identical-code" issue in library/src/main/java/com/alibaba/dcm/internal/InetAddressCacheUtilForJava8Minus.java
- Fix initFieldsOfInetAddressCachePolicy method issue in library/src/main/java/com/alibaba/dcm/internal/InetAddressCacheUtilCommons.java
- Fix "method_complexity" issue in library/src/main/java/com/alibaba/dcm/internal/InetAddressCacheUtilForJava8Minus.java
- Fix Method inetAddress$Addresses2DnsCacheEntry issue in InetAddressCacheUtilForJava9Plus
- Fix "squid:S00112" issue in library/src/main/java/com/alibaba/dcm/agent/DcmAgent.java
- jdk11支持吗
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-dns-cache-manipulator.