auth0/auth0-java

Library source does not match the bytecode for class AuthAPI

MostafijurRahmanTR opened this issue · 3 comments

Checklist

  • I have looked into the Readme and Examples, and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

There is a difference between the Library source code and the bytecode for the class AuthAPI.

Reproduction

Here are the reproduction steps:

  1. Create a Java project with an ant build system and add these dependencies into the ivy file.
  1. Create a class file and add the following lines of code in a class file:
// import the corresponding auth0 libraries for the following code.
JwkProvider jwkProvider;
AuthenticationController authenticationController;

String domain = "get_auth0_domain_name_from_auth0_dashboard";
String clientId = "get_auth0_client_id_from_auth0_dashboard";
String clientSecret = "get_auth0_client_secret_from_auth0_dashboard";

try {
            jwkProvider = new JwkProviderBuilder(domain).build();
                authenticationController = AuthenticationController.newBuilder(domain, clientId, clientSecret)
                        .withJwkProvider(jwkProvider)
                        .build();
            }

        } catch (Exception exp) {
        }
  1. Click on the build method to find its reference.
  2. Click on the createAPIClient call in the build() method.
  3. Click on the AuthAPI method call
  4. It will open the AuthAPI class. At the same time, you will see the message in a banner saying "Library source does not match the bytecode for class AuthAPI"
  5. In addition, you will see references for HttpUrl and HttpLoggingInterceptor classes are missing too.
  6. Click on the Show diff option from the top right corner and you will see 62 differences for the 1.32.0 version and 95 differences for the 2.1.0 version.

Here are some related screenshots of the error. Please feel free to reach out to me if you have any further questions on this.

1  error_auth0_version_1_32_0
2  62_differences_auth0_1_32_0_library
3_error_auth0_version_2_1_0
4_95_differences_auth0_2_1_0_library

Additional context

Here are the other libraries involved here.

auth0-java version

1.32.0 to 2.1.0

Java version

11

👋 hey @MostafijurRahmanTR, can you provide a sample project to reproduce?

@MostafijurRahmanTR couple other thoughts in addition to my question above:

  • What version of java-jwt are you using? auth0-java v2 includes a transitive dependency on v4 of java-jwt.
  • Could it be an IDE caching issue? Any issues with build/runtime outside of the IDE?

Closing due to inactivity, if the questions I raised above can be answered please open a new issue with that information. Thanks!