[SUREFIRE-3460] Don’t NPE when StackWalkerStrategy inits with a null TCCL (#3464)
- [SUREFIRE-3460] Don’t NPE when StackWalkerStrategy inits with a null TCCL
tryLoadClass treated a null ClassLoader as loadClass on null and threw, which poisoned StackWalkerStrategy. for the rest of the forked JVM. Load JDK types from the defining class loader instead, and treat a null loader as not found.
Fixes #3460
Signed-off-by: Burak KALAYCI kalayciburak1996@gmail.com
- [SUREFIRE-3460] Add IT for console capture with a null TCCL
Minimal project that prints from a thread whose context class loader is null, the same repro as on the issue.
Signed-off-by: Burak KALAYCI kalayciburak1996@gmail.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Contributing to Apache Maven Surefire
The Maven Community
Project Documentation
Usage of maven-surefire-plugin, maven-failsafe-plugin, maven-surefire-report-plugin
Development Information
Build the Surefire project using Maven 3.6.3+ and JDK 8+.
In order to run tests for a release check during the Vote, the following memory requirements are needed:
On Linux/Unix:
On Windows:
In order to build and run the tests:
To set up the project in Eclipse IDE or IntelliJ IDEA, please follow these steps:
Build module
surefire-shared-utilswith profileide-developmentand install it into the local maven repository using this Maven command:In Eclipse, select File > Import … > Maven Project
surefire-shared-utils, enter profileide-developmentin Advanced -> ProfilesIn IntelliJ, select Maven > Profiles and check
ide-developmentDeploying web site
See http://maven.apache.org/developers/website/deploy-component-reference-documentation.html