Skip visibility check when resolving class in debug mode
#KT-11326 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
LineBreakpoint created at privateClass.kt:5
|
||||
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !OUTPUT_PATH!;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! privateClass.PrivateClassKt
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
privateClass.kt:5
|
||||
Compile bytecode for A.PrivateClass()
|
||||
Compile bytecode for A.PrivateClass().prop
|
||||
Compile bytecode for A().PrivateInnerClass()
|
||||
Compile bytecode for A().PrivateInnerClass().prop
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,28 @@
|
||||
package privateClass
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
args.size
|
||||
}
|
||||
|
||||
class A {
|
||||
private class PrivateClass {
|
||||
private val prop = 1
|
||||
}
|
||||
|
||||
private inner class PrivateInnerClass {
|
||||
private val prop = 1
|
||||
}
|
||||
}
|
||||
|
||||
// EXPRESSION: A.PrivateClass()
|
||||
// RESULT: instance of privateClass.A$PrivateClass(id=ID): LprivateClass/A$PrivateClass;
|
||||
|
||||
// EXPRESSION: A.PrivateClass().prop
|
||||
// RESULT: 1: I
|
||||
|
||||
// EXPRESSION: A().PrivateInnerClass()
|
||||
// RESULT: instance of privateClass.A$PrivateInnerClass(id=ID): LprivateClass/A$PrivateInnerClass;
|
||||
|
||||
// EXPRESSION: A().PrivateInnerClass().prop
|
||||
// RESULT: 1: I
|
||||
Reference in New Issue
Block a user