diff --git a/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/JunitTestRunner.java b/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/JunitTestRunner.java index 348cab1594e8e..88021968f3a8b 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/JunitTestRunner.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/JunitTestRunner.java @@ -618,10 +618,9 @@ public String apply(Class aClass) { ClassWriter.COMPUTE_FRAMES | ClassWriter.COMPUTE_MAXS); cr.accept(new TestTracingProcessor.TracingClassVisitor(writer, i), 0); transformedClasses.put(i.replace('.', '/') + ".class", writer.toByteArray()); - } catch (IOException e) { - throw new RuntimeException(e); + } catch (Exception e) { + log.error("Failed to instrument " + i + " for usage tracking", e); } - } cl = testApplication.createRuntimeClassLoader(testApplication.getAugmentClassLoader(), Collections.emptyMap(), transformedClasses);