File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed
pitest/src/main/java/org/pitest/mutationtest/execute Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 2525 - name : ' Checkout from Git'
2626 uses : actions/checkout@v3
2727 - name : ' Set up JDK ${{ matrix.java }}'
28- uses : actions/setup-java@v3
28+ uses : actions/setup-java@v4
2929 with :
3030 java-version : ${{ matrix.java }}
3131 distribution : adopt
Original file line number Diff line number Diff line change 22
33import org .pitest .boot .HotSwapAgent ;
44import org .pitest .classinfo .ClassName ;
5+ import org .pitest .util .Log ;
56
67import java .lang .instrument .ClassFileTransformer ;
78import java .security .ProtectionDomain ;
89import java .util .Collections ;
910import java .util .Map ;
1011import java .util .WeakHashMap ;
12+ import java .util .logging .Logger ;
1113
1214/**
1315 * Pitest mainly inserts mutants by calling Instrumentation.redefineClasses using
2830 */
2931public class CatchNewClassLoadersTransformer implements ClassFileTransformer {
3032
33+ private static final Logger LOG = Log .getLogger ();
34+
3135 private static String targetClass ;
3236 private static byte [] currentMutant ;
3337
@@ -38,6 +42,9 @@ public class CatchNewClassLoadersTransformer implements ClassFileTransformer {
3842 public static synchronized void setMutant (String className , byte [] mutant ) {
3943 targetClass = className ;
4044 currentMutant = mutant ;
45+
46+ logClassloaders ();
47+
4148 for (ClassLoader each : CLASS_LOADERS .keySet ()) {
4249 final Class <?> clazz = checkClassForLoader (each , className );
4350 if (clazz != null ) {
@@ -83,4 +90,10 @@ private boolean shouldTransform(ClassLoader loader) {
8390 return !loader .getClass ().getName ().startsWith ("com.google.gwtmockito." );
8491 }
8592
93+ private static void logClassloaders () {
94+ if (CLASS_LOADERS .size () > 1 ) {
95+ LOG .fine ("Accumulated " + CLASS_LOADERS .size () + " classloaders" );
96+ }
97+ }
98+
8699}
Original file line number Diff line number Diff line change 9999 </property >
100100 </activation >
101101 <modules >
102- <module >pitest-maven-verification</module >
102+ <module >pitest-maven-verification</module >
103103 </modules >
104104 </profile >
105105 <profile >
404404 </plugins >
405405 </build >
406406
407+ <distributionManagement >
408+ <snapshotRepository >
409+ <id >central</id >
410+ <url >https://central.sonatype.com/repository/maven-snapshots/</url >
411+ </snapshotRepository >
412+ </distributionManagement >
413+
407414</project >
You can’t perform that action at this time.
0 commit comments