auth0 / auth0-java

Java client library for the Auth0 platform
https://auth0.com
MIT License
286 stars 131 forks source link

Library source does not match the bytecode for class AuthAPI #542

Closed MostafijurRahmanTR closed 1 year ago

MostafijurRahmanTR commented 1 year ago

Checklist

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

jimmyjames commented 1 year ago

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

jimmyjames commented 1 year ago

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

jimmyjames commented 1 year ago

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