This issue should affect all POST requests with a Void return type, though I have only had a chance to observe it with the Sendmail method. It has been present since 1.2.0.
Posting to Sendmail returns an empty BufferedInputStream, but the library throws a runtime error that it expects Void, not a BufferedInputStream. It seems like Void doesn't know how to cast this object type to Void.
A correlated test for this is checked into functional > OutlookTests as testSendMail(), currently failing with error:
java.lang.ClassCastException: java.io.BufferedInputStream cannot be cast to java.lang.Void
at com.microsoft.graph.generated.BaseUserSendMailRequest.post(BaseUserSendMailRequest.java:43)
at com.microsoft.graph.functional.OutlookTests.testSendMail(OutlookTests.java:42)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:198)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:183)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:560)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1932)
This issue should affect all POST requests with a Void return type, though I have only had a chance to observe it with the Sendmail method. It has been present since 1.2.0.
Posting to Sendmail returns an empty BufferedInputStream, but the library throws a runtime error that it expects Void, not a BufferedInputStream. It seems like Void doesn't know how to cast this object type to Void.
A correlated test for this is checked into functional > OutlookTests as testSendMail(), currently failing with error: