84c473d800
Avoid calling InetAddress.getLocalHost() that can be very slow. Exact connection or disconnection string isn't relevant for tests anyway.
48 lines
1.9 KiB
Plaintext
Vendored
48 lines
1.9 KiB
Plaintext
Vendored
LineBreakpoint created at delegatedPropertyInClass.kt:9
|
|
Run Java
|
|
Connected to the target VM
|
|
delegatedPropertyInClass.kt:9
|
|
package delegatedPropertyInClass
|
|
|
|
import kotlin.properties.Delegates
|
|
import kotlin.reflect.KProperty
|
|
|
|
fun main(args: Array<String>) {
|
|
val a = A()
|
|
//Breakpoint!
|
|
args.size
|
|
}
|
|
|
|
class A {
|
|
val prop by MyDelegate()
|
|
val propEx by MyDelegateThrowsException()
|
|
}
|
|
|
|
class MyDelegate {
|
|
operator fun getValue(t: Any?, p: KProperty<*>): Int = 1
|
|
}
|
|
|
|
class MyDelegateThrowsException {
|
|
operator fun getValue(t: Any?, p: KProperty<*>): Int = throw IllegalStateException()
|
|
}
|
|
|
|
// PRINT_FRAME
|
|
// SKIP: suppressedExceptions
|
|
// SKIP: stackTrace
|
|
|
|
Compile bytecode for args.size
|
|
frame = main:9, DelegatedPropertyInClassKt {delegatedPropertyInClass}
|
|
local = args: java.lang.String[] = {java.lang.String[0]@uniqueID} (sp = delegatedPropertyInClass.kt, 6)
|
|
local = a: delegatedPropertyInClass.A = {delegatedPropertyInClass.A@uniqueID} (sp = delegatedPropertyInClass.kt, 7)
|
|
field = prop$delegate: delegatedPropertyInClass.MyDelegate = {delegatedPropertyInClass.MyDelegate@uniqueID} (sp = delegatedPropertyInClass.kt, 13)
|
|
- Class has no fields
|
|
field = prop: int = 1 (sp = delegatedPropertyInClass.kt, 13)
|
|
field = propEx$delegate: delegatedPropertyInClass.MyDelegateThrowsException = {delegatedPropertyInClass.MyDelegateThrowsException@uniqueID} (sp = delegatedPropertyInClass.kt, 14)
|
|
- Class has no fields
|
|
field = propEx: int = {java.lang.IllegalStateException@uniqueID}java.lang.IllegalStateException (sp = delegatedPropertyInClass.kt, 14)
|
|
field = detailMessage: java.lang.String = null (sp = Throwable.!EXT!)
|
|
field = cause: java.lang.Throwable = {java.lang.IllegalStateException@uniqueID}java.lang.IllegalStateException (sp = Throwable.!EXT!)
|
|
Disconnected from the target VM
|
|
|
|
Process finished with exit code 0
|