我正在使用2003年的一些代码.有一个对以下类的引用:
new com.sun.net.ssl.internal.ssl.Provider()
Run Code Online (Sandbox Code Playgroud)
它导致错误:
Access restriction: The type Provider is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/jsse.jar
有没有人对使用这个类的合适替代方案有任何建议?