Skip to content

Commit 5a93e0c

Browse files
committed
Fix jdk21 BUG
1 parent 25a3061 commit 5a93e0c

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

src/main/java/com/tang/intellij/lua/debugger/emmyAttach/EmmyAttachGroup.kt

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,18 @@ class EmmyAttachGroup : XAttachProcessPresentationGroup {
4848
}
4949

5050
override fun getItemIcon(project: Project, processInfo: ProcessInfo, userDataHolder: UserDataHolder): Icon {
51-
val map = userDataHolder.getUserData(EmmyAttachDebuggerProvider.DETAIL_KEY)
52-
if (map != null) {
53-
val detail = map[processInfo.pid]
54-
if (detail != null) {
55-
val file = File(detail.path)
56-
if (file.exists()) {
57-
val sf = FileSystemView.getFileSystemView()
58-
return sf.getSystemIcon(file)
59-
}
60-
}
61-
}
51+
// JDK21 BUG: getSystemIcon throw a error
52+
// val map = userDataHolder.getUserData(EmmyAttachDebuggerProvider.DETAIL_KEY)
53+
// if (map != null) {
54+
// val detail = map[processInfo.pid]
55+
// if (detail != null) {
56+
// val file = File(detail.path)
57+
// if (file.exists()) {
58+
// val sf = FileSystemView.getFileSystemView()
59+
// return sf.getSystemIcon(file)
60+
// }
61+
// }
62+
// }
6263
return LuaIcons.FILE
6364
}
6465

0 commit comments

Comments
 (0)