Evaluate: Fix annotation value evaluation (#KT-23058)
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
package annotationValue
|
||||
|
||||
annotation class Anno(val value: String)
|
||||
|
||||
@Anno("abc")
|
||||
class SomeClass
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
val a = 5
|
||||
}
|
||||
|
||||
// EXPRESSION: (SomeClass::class.java.annotations[0] as Anno).value
|
||||
// RESULT: "abc": Ljava/lang/String;
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at annotationValue.kt:10
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
annotationValue.kt:10
|
||||
Compile bytecode for (SomeClass::class.java.annotations[0] as Anno).value
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
Reference in New Issue
Block a user