diff --git a/core/runtime/src/main/java/io/quarkus/runtime/TemplateHtmlBuilder.java b/core/runtime/src/main/java/io/quarkus/runtime/TemplateHtmlBuilder.java index e041748577ffa9..6bd288080dcabb 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/TemplateHtmlBuilder.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/TemplateHtmlBuilder.java @@ -250,16 +250,15 @@ public TemplateHtmlBuilder stack(final Throwable throwable, List knowCla for (int i = 0; i < stackTrace.length; ++i) { var elem = stackTrace[i]; - - className = elem.getClassName(); - String filename = elem.getFileName(); - if (filename != null) { - int dotindex = filename.lastIndexOf("."); - type = elem.getFileName().substring(dotindex + 1); - } - lineNumber = elem.getLineNumber(); - if (knowClasses.contains(elem.getClassName())) { + className = elem.getClassName(); + String filename = elem.getFileName(); + if (filename != null) { + int dotindex = filename.lastIndexOf("."); + type = elem.getFileName().substring(dotindex + 1); + } + lineNumber = elem.getLineNumber(); + stackTrace[i] = new StackTraceElement(elem.getClassLoaderName(), elem.getModuleName(), elem.getModuleVersion(), BRSTI + elem.getClassName()