Skip to content

Commit

Permalink
Don't fail testing if transformation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Sep 28, 2021
1 parent c3c9983 commit 98e9599
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 98e9599

Please sign in to comment.