Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

gavvvr/msal4j-806

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AzureAD/microsoft-authentication-library-for-java#806

msal4j v1.15.0 backward-compatibility problem

How to reproduce

  1. Build an app with:
./gradlew :app:installDist
  1. Ensure the app is running as expected:
./app/build/install/app/bin/app
  1. Make AbstractBuilder to extend BuilderBase and comment out AbstractBuilder#{executorService/self} methods
abstract class AbstractBuilder<T extends AbstractBuilder<T>> extends BuilderBase<T> {
//    public T executorService() {
//        return self();
//    }
//
//    abstract T self();
}
  1. Build an updated lib.jar with:
./gradlew :lib:jar
  1. copy it to lib directory of app's distribution:
cp -f ./lib/build/libs/lib.jar ./app/build/install/app/lib/lib.jar
  1. Run the app again to see the java.lang.NoSuchMethodError
./app/build/install/app/bin/app
Exception in thread "main" java.lang.NoSuchMethodError: 'org.example.lib.AbstractBuilder org.example.lib.Builder.executorService()'
        at org.example.app.App.main(App.java:8)

Releases

No releases published

Packages

No packages published

Languages