mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-console] IDEA-344708 JVM Log navigation doesn't support nested classes
GitOrigin-RevId: 80c2c932b4630df848b7ff897a1ac50c988b8bcc
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d5da0ada2b
commit
199e367dbd
+35
@@ -285,4 +285,39 @@ public final class EmptySpringApplication {
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
fun testNestedClasses() {
|
||||
LoggingTestUtils.addSlf4J(myFixture)
|
||||
checkColumnFinderJava(
|
||||
fileName = "UpperClass",
|
||||
classText = """
|
||||
package com.example;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public final class UpperClass {
|
||||
public static class Inner{
|
||||
private static final Logger log = org.slf4j.LoggerFactory.getLogger(Inner.class);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
request1("1");
|
||||
}
|
||||
|
||||
|
||||
private static void request1(String number) {
|
||||
System.out.println("com.example.UpperClass${"\$Inner"} test");
|
||||
Inner.log.info("new request1 {}", number);
|
||||
}
|
||||
}
|
||||
""".trimIndent(),
|
||||
logItems = listOf(
|
||||
LogItem("java.exe", null),
|
||||
LogItem("1", null),
|
||||
LogItem("com.example.UpperClass${"\$Inner"} test", LogicalPosition(6, 24)),
|
||||
LogItem("[main] INFO com.example.UpperClass${"\$Inner"} -- new request1 1", LogicalPosition(17, 8)),
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user