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
{{ message }}
Repository navigation
Build fails due to ambiguity in java.util.Base64 and org.rsna.util.Base64 in SenderThread.java #2
I'm glad you noticed this. I made the change many months ago, but I forgot to push the change (and a bunch of other ones) to GitHub. It's all there now.
JP
From: puru1761
Sent: Monday, September 18, 2017 5:05 PM
To: johnperry/CTPClient
Cc: Subscribed
Subject: [johnperry/CTPClient] Build fails due to ambiguity in java.util.Base64 and org.rsna.util.Base64 in SenderThread.java (#2)
The basic authentication script in line 90 given below causes a build fail due to the ambiguity in java.util.Base64 and org.rsna.util.Base64
https://github.com/johnperry/CTPClient/blob/1c015288bc948dcdfd42874d6cbab67347cab5e9/source/java/client/SenderThread.java#L90
Fixed code On line 90:
this.authHeader = "Basic " + org.rsna.util.Base64.encodeToString((username + ":" + password).getBytes());
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
jar:
[javac] Compiling 20 source files to /home/bowden/Code/mirc/CTPClient/build
[javac] /home/bowden/Code/mirc/CTPClient/source/java/client/SenderThread.java:448: error: reference to Base64 is ambiguous
[javac] credentials = "Basic " + Base64.encodeToString((this.username + ":" + password).getBytes());
[javac] ^
[javac] both class org.rsna.util.Base64 in org.rsna.util and class java.util.Base64 in java.util match
[javac] 1 error
Activity
johnperry commentedon Sep 19, 2017
jmzumg commentedon Jul 16, 2024
The same error occurs on line 448