Good Morning!
👋
morning!
Good morning!
I hope everybody coud take the holiday time to get a deep breath and is pumped for a hopefully less strange 2021! 🎆
morning!
morning
@ordnungswidrig I take you didn’t stay up late watching the news on American TV? 😛
@simongray not at all. I will come how it comes. 😉
oh, fancy things hapened?
you really have been isolated
good job 🙂
probably very healthy. In my flat, we were watching the live news coverage on CBS till late with lots of popcorn and pepsi.
morning
Seems the vast bulk of the revolution participated via Zoom? 😃
morning
absolutely gobsmacking how • how heavy-handedly policed the BLM protests of the summer were • how non-existent the policing of the white supremacist coup attempt was I mean I knew USA was was that way inclined, but this is jaw-dropping
as usual, The Onion put it better https://twitter.com/TheOnion/status/1346925781864357888
I'd rather live in less interesting times...
ha! the 21st century was supposed to be less interesting times Remember > The end of history from the millienium celebrations
> There was a king with a large jaw and a queen with a plain face, on the throne of England; there were a king with a large jaw and a queen with a fair face, on the throne of France. In both countries it was clearer than crystal ... that things in general were settled for ever.”
Good morning! I’m here to pepper the USA weirdness with some Java weirdness, if any kind soul can point me to the right direction…
IClientCredential credential = ClientCredentialFactory.createFromSecret(CLIENT_SECRET);
ConfidentialClientApplication app =
ConfidentialClientApplication
.builder(PUBLIC_CLIENT_ID, credential)
.authority(AUTHORITY)
.build();
I have translated this to
(let [credential (ClientCredentialFactory/createFromSecret secret-value)
builder ^ConfidentialClientApplication$Builder
(ConfidentialClientApplication/builder client-id credential)]
(->
builder
(.authority authority)
(.build)))
But I’m getting this exception:
; (err) Execution error (IllegalArgumentException) at nosco.azure/eval85548 (REPL:35).
; (err) No matching method authority found taking 1 args for class com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder
The javadoc is https://javadoc.io/static/com.microsoft.azure/msal4j/1.8.1/com/microsoft/aad/msal4j/ConfidentialClientApplication.Builder.html#authority-java.lang.String- and I’m sure I have the correct version of the library…
Maybe you are using the wrong version?
Which line is line 35 in the file?
I lolled:
haha lol
@orestis You can try and do some reflection, listing the available methods on the object you're calling
And to be really sure 😉 you're using the right version, do (io/resource "org/foo/bar/TheClass.class")
and see what it comes up with
or check the classpath
#object[http://java.net.URL 0x4aa2eb09 “jar:file:/Users/orestis/.m2/repository/com/microsoft/azure/msal4j/1.8.1/msal4j-1.8.1.jar!/com/microsoft/aad/msal4j/ConfidentialClientApplication.class”]
There seems to be something wrong with this library 😞
Here’s the :members of that builder class:
{:name
com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
:declaring-class
com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
:parameter-types
[java.lang.String
com.microsoft.aad.msal4j.IClientCredential
com.microsoft.aad.msal4j.ConfidentialClientApplication$1],
:exception-types [],
:flags #{:synthetic}}
{:name build,
:return-type
com.microsoft.aad.msal4j.AbstractClientApplicationBase,
:declaring-class
com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
:parameter-types [],
:exception-types [],
:flags #{:public :bridge :synthetic}}
{:name access$000,
:return-type boolean,
:declaring-class
com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
:parameter-types
[com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder],
:exception-types [],
:flags #{:static :synthetic}}
{:name
com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
:declaring-class
com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
:parameter-types
[java.lang.String com.microsoft.aad.msal4j.IClientCredential],
:exception-types [],
:flags #{:private}}
{:name build,
:return-type
com.microsoft.aad.msal4j.ConfidentialClientApplication,
:declaring-class
com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
:parameter-types [],
:exception-types [],
:flags #{:public}}
{:name clientCredential,
:type com.microsoft.aad.msal4j.IClientCredential,
:declaring-class
com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
:flags #{:private}}
{:name self,
:return-type
com.microsoft.aad.msal4j.AbstractClientApplicationBase$Builder,
:declaring-class
com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
:parameter-types [],
:exception-types [],
:flags #{:bridge :protected :synthetic}}
{:name sendX5c,
:return-type
com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
:declaring-class
com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
:parameter-types [boolean],
:exception-types [],
:flags #{:public}}
{:name self,
:return-type
com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
:declaring-class
com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
:parameter-types [],
:exception-types [],
:flags #{:protected}}
{:name access$100,
:return-type com.microsoft.aad.msal4j.IClientCredential,
:declaring-class
com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
:parameter-types
[com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder],
:exception-types [],
:flags #{:static :synthetic}}
{:name sendX5c,
:type boolean,
:declaring-class
com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
:flags #{:private}}
Does the synthetic flag ring any bells?
I’ve moved the discussion to #java
https://ask.clojure.org/index.php/10029/possible-reflection-abstract-class-methods-being-visible
I managed to work around the issue with some more direct reflection but Alex Miller suggested it might be a bug
Let’s go back to the dismay over the assault on democracy thrown by some 10+ idiots yesterday. 😃
I’ve spent the weeks running up to the US elections, and until the final results, totally obsessed. I decided to put my head in the sand and wait for all this to blow over.
I’ve just glanced at it now and then, happy for the entertainment, but I am obsessed with so many other things so I am out of fucks to give for that circus.
any outcome of that discussion? I’m just curious