Skip to content

Commit

Permalink
Merge pull request #20426 from stuartwdouglas/minor-fix-tracking
Browse files Browse the repository at this point in the history
Don't fail testing if transformation fails
  • Loading branch information
stuartwdouglas authored Sep 29, 2021
2 parents 6214f39 + 98e9599 commit a0f110e
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 a0f110e

Please sign in to comment.