Fix for KT-9939: java.lang.VerifyError: Bad type on operand stack for Boolean convenience accessor

#KT-9939 Fixed
This commit is contained in:
Michael Bogdanov
2015-11-10 14:14:30 +03:00
parent de4ea45f20
commit a5771c6c1c
6 changed files with 72 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
public class JavaClass {
private boolean value;
public boolean isValue() {
return value;
}
public void setValue(Boolean value) {
this.value = value;
}
}

View File

@@ -0,0 +1,11 @@
fun box(): String {
val javaClass = JavaClass()
if (javaClass.isValue != false) return "fail 1"
javaClass.isValue = true
if (javaClass.isValue != true) return "fail 2"
return "OK"
}