mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Handle clashed class names in getInstanceFieldObjectId class name verification (IDEA-226477)
GitOrigin-RevId: 357b7f285458af61baf4e781ffa5fd820b109345
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e424abfb3c
commit
cfa3aaf338
+1
-1
@@ -61,7 +61,7 @@ abstract class ObjectNavigator(val classStore: ClassStore, val instanceCount: Lo
|
||||
fun getInstanceFieldObjectId(className: String?, name: String): Long {
|
||||
val refs = getReferencesCopy()
|
||||
className?.let {
|
||||
assert(className == getClass().name) { "Expected $className, got ${getClass().name}" }
|
||||
assert(className == getClass().name.substringAfter('!')) { "Expected $className, got ${getClass().name}" }
|
||||
}
|
||||
val indexOfField = getClass().allRefFieldNames(classStore).indexOfFirst { it == name }
|
||||
return refs[indexOfField]
|
||||
|
||||
Reference in New Issue
Block a user