Skip to content

Build fails due to ambiguity in java.util.Base64 and org.rsna.util.Base64 in SenderThread.java #2

Open

Description

@puru1761

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

this.authHeader = "Basic " + Base64.encodeToString((username + ":" + password).getBytes());

Fixed code On line 90:
this.authHeader = "Basic " + org.rsna.util.Base64.encodeToString((username + ":" + password).getBytes());

Activity

  1. johnperry commented on Sep 19, 2017

    @johnperry
    Owner
  2. jmzumg commented on Jul 16, 2024

    @jmzumg

    The same error occurs on line 448

    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
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions