From 7155066d4a12a1466d05cdaedf37a58595519123 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Tue, 20 Oct 2020 10:07:43 -0500 Subject: [PATCH] Issue #5475 - Adding debug log output for asmVersion detect Signed-off-by: Joakim Erdfelt --- .../java/org/eclipse/jetty/annotations/AnnotationParser.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/AnnotationParser.java b/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/AnnotationParser.java index 02f7e2f826a1..8e2c3dad7336 100644 --- a/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/AnnotationParser.java +++ b/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/AnnotationParser.java @@ -107,7 +107,10 @@ private static int asmVersion() int asmFieldId = asmVersion.get(); try { - return (int)Opcodes.class.getField("ASM" + asmFieldId).get(null); + String fieldName = "ASM" + asmFieldId; + if (LOG.isDebugEnabled()) + LOG.debug("Using ASM API from {}.{}", Opcodes.class.getName(), fieldName); + return (int)Opcodes.class.getField(fieldName).get(null); } catch (Throwable e) {