[java-console] IDEA-315142 support stacktrace logs with class loader

GitOrigin-RevId: 2ee1950759d90c754f25c03c5cd6e2f44f1339a4
This commit is contained in:
Mikhail Pyltsin
2023-12-13 12:20:07 +01:00
committed by intellij-monorepo-bot
parent 70d22f5530
commit 77c14bfaa5
2 changed files with 30 additions and 0 deletions

View File

@@ -116,6 +116,10 @@ public class ExceptionWorker {
int classNameIdx;
if (moduleIdx > -1 && moduleIdx < dotIdx && !line.startsWith("0x", moduleIdx + 1)) {
classNameIdx = moduleIdx + 1;
// `//` is used as a separator in an unnamed module with a class loader name
if (line.charAt(classNameIdx) == '/') {
classNameIdx++;
}
}
else {
if (startIdx >= 0) {