mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
[java-console] IDEA-344708 JVM Log navigation doesn't support nested classes
- support double nested classes GitOrigin-RevId: 169c1c30bc895a838bdedd941d6397fe6de5c0ef
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4b75221526
commit
fd0e68a470
@@ -320,4 +320,41 @@ public final class UpperClass {
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
fun testNestedClasses2() {
|
||||
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{
|
||||
public static class Inner2{
|
||||
private static final Logger log = org.slf4j.LoggerFactory.getLogger(Inner2.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
request1("1");
|
||||
}
|
||||
|
||||
|
||||
private static void request1(String number) {
|
||||
System.out.println("com.example.UpperClass${"\$Inner"}${"\$Inner2"} test");
|
||||
Inner.Inner2.log.info("new request1 {}", number);
|
||||
}
|
||||
}
|
||||
""".trimIndent(),
|
||||
logItems = listOf(
|
||||
LogItem("java.exe", null),
|
||||
LogItem("1", null),
|
||||
LogItem("com.example.UpperClass${"\$Inner"}${"\$Inner2"} test", LogicalPosition(7, 26)),
|
||||
LogItem("[main] INFO com.example.UpperClass${"\$Inner"}${"\$Inner2"} -- new request1 1", LogicalPosition(19, 8)),
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user