Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameServiceDescriptor SPI is removed in JDK 9 #5

Open
msgilligan opened this issue Mar 23, 2017 · 5 comments
Open

NameServiceDescriptor SPI is removed in JDK 9 #5

msgilligan opened this issue Mar 23, 2017 · 5 comments

Comments

@msgilligan
Copy link
Member

msgilligan commented Mar 23, 2017

The beeLin Java library uses the following Sun private APIs:

sun.net.spi.nameservice.NameService
sun.net.spi.nameservice.NameServiceDescriptor

and the META-INF/services mechanism of registering with the SPI. This is going away in Java 9. See https://bugs.openjdk.java.net/browse/JDK-8134577

This is unfortunate, because it is a great mechanism for enabling alternate DNS mechanisms in any Java application simply by adding a library JAR.

We need a replacement strategy for Java 9. Any ideas?

(Note: This mechanism does not to be available on Android OS)

@SkateScout
Copy link

@stokito
Copy link

stokito commented Jun 25, 2018

Google asked to restore back the API
https://bugs.java.com/view_bug.do?bug_id=8192780

@msgilligan
Copy link
Member Author

@stokito I can't comment on bugs.java.com -- do you know how to do that?

@stokito
Copy link

stokito commented Jun 25, 2018

You should be a contributor to have an access to bug tracker. Without this it will be immediately created thouthands of issues and it become a second StackOverflow.
But I think it's ok to write to working email of contributor.

@msgilligan
Copy link
Member Author

I just discovered this:
https://stackoverflow.com/a/50000475

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants