You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since this is a very useful tool, and this solution is even listed by Atlassian as a good improvement to their original version of SSLPoke I thought it was worth reporting this issue.
I get the following compilation error when compiling with Java 17.
% javac SSLPoke.java
SSLPoke.java:71: error: package sun.net.www.protocol.http is not visible
+ "User-Agent: " + sun.net.www.protocol.http.HttpURLConnection.userAgent + "\r\n"
^
(package sun.net.www.protocol.http is declared in module java.base, which does not export it to the unnamed module)
1 error`
awesome, thx for your fix, integrated it an now it compiles for java 11/17 and 21 :), THX!
% make test
/usr/lib/jvm/java-11-openjdk-amd64/bin/javac SSLPoke.java
/usr/lib/jvm/java-17-openjdk-amd64/bin/javac SSLPoke.java
/usr/lib/jvm/java-21-openjdk-amd64/bin/javac SSLPoke.java
%
Since this is a very useful tool, and this solution is even listed by Atlassian as a good improvement to their original version of SSLPoke I thought it was worth reporting this issue.
I get the following compilation error when compiling with Java 17.
According to this answer on Stack Overflow (https://stackoverflow.com/questions/10782957/what-to-use-instead-of-sun-net-www-protocol-http-httpurlconnection-useragent) I made the below changes that worked for me.
The text was updated successfully, but these errors were encountered: