olamy commented on code in PR #3464:
URL: https://github.com/apache/maven-surefire/pull/3464#discussion_r3975003461


##########
surefire-api/src/test/java/org/apache/maven/surefire/api/report/StackTraceProviderTest.java:
##########
@@ -142,4 +142,18 @@ void strategyWalkAppliesExcludePredicate() {
         assertThat(frames).noneMatch(frame -> 
frame.startsWith(StackWalkerStrategy.class.getName() + "#"));
         assertThat(frames.get(0)).isEqualTo(getClass().getName() + 
"#strategyWalkAppliesExcludePredicate");
     }
+
+    @Test
+    void getStackDoesNotThrowWhenContextClassLoaderIsNull() {
+        ClassLoader original = Thread.currentThread().getContextClassLoader();

Review Comment:
   Thanks for your pull request.
   Could you please provide an IT test as well. A real as simple as possible 
project reproducing the issue



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to