Fork me on GitHub
#clojure-europe
<
2021-01-07
>
dharrigan07:01:30

Good Morning!

djm08:01:26

šŸ‘‹

ordnungswidrig08:01:13

I hope everybody coud take the holiday time to get a deep breath and is pumped for a hopefully less strange 2021! šŸŽ†

simongray08:01:32

@ordnungswidrig I take you didnā€™t stay up late watching the news on American TV? šŸ˜›

ordnungswidrig08:01:22

@simongray not at all. I will come how it comes. šŸ˜‰

ordnungswidrig08:01:11

oh, fancy things hapened?

simongray08:01:25

you really have been isolated

simongray08:01:02

good job šŸ™‚

simongray08:01:45

probably very healthy. In my flat, we were watching the live news coverage on CBS till late with lots of popcorn and pepsi.

šŸ˜‚ 3
pez09:01:55

Seems the vast bulk of the revolution participated via Zoom? šŸ˜ƒ

Ben Hammond09:01:58

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

Ben Hammond09:01:05

as usual, The Onion put it better https://twitter.com/TheOnion/status/1346925781864357888

ā˜ļø 3
šŸ‘ 3
thomas10:01:38

I'd rather live in less interesting times...

Ben Hammond10:01:59

ha! the 21st century was supposed to be less interesting times Remember > The end of history from the millienium celebrations

Ben Hammond10:01:52

> 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.ā€

orestis13:01:11

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ā€¦

orestis13:01:13

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

borkdude14:01:35

Maybe you are using the wrong version?

pez14:01:44

I lolled:

borkdude14:01:27

@U7PBP4UVA You can try and do some reflection, listing the available methods on the object you're calling

borkdude14:01:49

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

borkdude14:01:03

or check the classpath

orestis14:01:49

#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ā€]

pez14:01:36

Which line is line 35 in the file?

orestis14:01:10

There seems to be something wrong with this library šŸ˜ž

orestis14:01:21

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}}

orestis14:01:17

Does the synthetic flag ring any bells?

orestis14:01:43

Iā€™ve moved the discussion to #java

ordnungswidrig21:01:22

any outcome of that discussion? Iā€™m just curious

orestis16:01:20

I managed to work around the issue with some more direct reflection but Alex Miller suggested it might be a bug

pez14:01:26

Letā€™s go back to the dismay over the assault on democracy thrown by some 10+ idiots yesterday. šŸ˜ƒ

orestis14:01:04

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.

pez14:01:55

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.

šŸ˜‚ 3