question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

0.5.0-preview possibly released with mismatching source code/documentation?

See original GitHub issue

Just noticed this while testing out the new Microsoft Identity Platform 2.0 functionality, the currently released version (0.5.0-preview) does not match the sources and documentation released alongside with it.

To be specific, the issue I noticed is that the class com.microsoft.aad.msal4j.AuthorizationCodeParameters is present in the JAR and the source released alongside makes reference to ConfidentialClientApplication#acquireToken(AuthorizationCodeParameters) method which however does not actually exist, the only available overloads are for ClientCredentialParameters and OnBehalfOfParameters. When viewed through IntelliJ IDEA, when opening the class com.microsoft.aad.msal4j.ClientApplicationBase it even puts a red alert box on top with the text “Library source does not match the bytecode for class ClientApplicationBase”.

To add to the confusion, this mismatch is also present in the example application at Azure-Samples/ms-identity-java-webapp AuthHelper.java#L187-L192

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sangonzalcommented, Oct 10, 2019

@esuomi @thobbs #103 should fix this. We’ll release 0.6.0-preview with this change and should be able to get it from Maven central either today or tomorrow to test out.

0reactions
toburgercommented, Feb 27, 2021

I’m running into the same issues @thobbs mentioned when trying to call AbstractClientApplicationBase$Builder methods in Clojure. Seems related to Cannot resolve public generic method from package-private base class.

Example, where I want to set the authority:

(def app
  (.. (ConfidentialClientApplication/builder client-id credential)
      (authority authority)
      (build)))

Error:

Reflection warning, hello.clj:35:3 - call to method authority on com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder can't be resolved (argument types: unknown).
Reflection warning, hello.clj:35:3 - call to method build can't be resolved (target class is unknown).
Execution error (IllegalArgumentException) at clojure.run.exec/requiring-resolve' (exec.clj:31).
No matching method authority found taking 1 args for class com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder
Read more comments on GitHub >

github_iconTop Results From Across the Web

Source Code Documentation and Version Control - YouTube
Here we discuss JavaDoc, Doxygen, and Git.
Read more >
Generating Source Code Documentation With DocFx
DocFx is an open-source source code documentation tool developed by Microsoft. It was initially released a number of years ago but has come ......
Read more >
Source code documentation in Racket (Scheme)
The short answer is you can write in-source documentation by using scribble/srcdoc . Unlike the other languages you mentioned, these aren't ...
Read more >
Android Open Source Project
Android unites the world! Use the open source Android operating system to power your device. COPY.
Read more >
How to Write Doc Comments for the Javadoc Tool
The Javadoc tool can generate output originating from four different types of "source" files: Source code files for Java classes (.java) - these...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found