From 17fa07e7da0c3dcc2ffeb20559fb232ab721c968 Mon Sep 17 00:00:00 2001 From: Phillip Kruger Date: Fri, 30 Aug 2024 13:18:32 +1000 Subject: [PATCH] Fix IDE link in error page Signed-off-by: Phillip Kruger --- .../io/quarkus/runtime/TemplateHtmlBuilder.java | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) 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 e041748577ffa..6bd288080dcab 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()