Basic -Xrelease option support
#KT-29974 Fixed
This commit is contained in:
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 1 public final static clear\(Ljava/nio/ByteBuffer;\)Ljava/nio/ByteBuffer;
|
||||
// 1 INVOKEVIRTUAL java/nio/ByteBuffer.clear \(\)Ljava/nio/ByteBuffer;
|
||||
fun clear(byteByffer: java.nio.ByteBuffer) = byteByffer.clear()
|
||||
|
||||
fun box(): String {
|
||||
if (clear(java.nio.ByteBuffer.allocateDirect(10)).capacity() != 10) return "fail"
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
// RELEASE: 10
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 1 public final static clear\(Ljava/nio/ByteBuffer;\)Ljava/nio/ByteBuffer;
|
||||
// 1 INVOKEVIRTUAL java/nio/ByteBuffer.clear \(\)Ljava/nio/ByteBuffer;
|
||||
fun clear(byteByffer: java.nio.ByteBuffer) = byteByffer.clear()
|
||||
|
||||
fun box(): String {
|
||||
if (clear(java.nio.ByteBuffer.allocateDirect(10)).capacity() != 10) return "fail"
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
// RELEASE: 11
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 1 public final static clear\(Ljava/nio/ByteBuffer;\)Ljava/nio/ByteBuffer;
|
||||
// 1 INVOKEVIRTUAL java/nio/ByteBuffer.clear \(\)Ljava/nio/ByteBuffer;
|
||||
fun clear(byteByffer: java.nio.ByteBuffer) = byteByffer.clear()
|
||||
|
||||
fun box(): String {
|
||||
if (clear(java.nio.ByteBuffer.allocateDirect(10)).capacity() != 10) return "fail"
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
// RELEASE: 6
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 1 public final static clear\(Ljava/nio/ByteBuffer;\)Ljava/nio/Buffer;
|
||||
// 1 INVOKEVIRTUAL java/nio/ByteBuffer.clear \(\)Ljava/nio/Buffer;
|
||||
fun clear(byteByffer: java.nio.ByteBuffer) = byteByffer.clear()
|
||||
|
||||
fun box(): String {
|
||||
if (clear(java.nio.ByteBuffer.allocateDirect(10)).capacity() != 10) return "fail"
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
// RELEASE: 8
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 1 public final static clear\(Ljava/nio/ByteBuffer;\)Ljava/nio/Buffer;
|
||||
// 1 INVOKEVIRTUAL java/nio/ByteBuffer.clear \(\)Ljava/nio/Buffer;
|
||||
fun clear(byteByffer: java.nio.ByteBuffer) = byteByffer.clear()
|
||||
|
||||
fun box(): String {
|
||||
if (clear(java.nio.ByteBuffer.allocateDirect(10)).capacity() != 10) return "fail"
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
// RELEASE: 9
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 1 public final static clear\(Ljava/nio/ByteBuffer;\)Ljava/nio/ByteBuffer;
|
||||
// 1 INVOKEVIRTUAL java/nio/ByteBuffer.clear \(\)Ljava/nio/ByteBuffer;
|
||||
fun clear(byteByffer: java.nio.ByteBuffer) = byteByffer.clear()
|
||||
|
||||
fun box(): String {
|
||||
if (clear(java.nio.ByteBuffer.allocateDirect(10)).capacity() != 10) return "fail"
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 2 CHECKCAST java/lang/ReflectiveOperationException
|
||||
// 1 LOCALVARIABLE reflective Ljava/lang/ReflectiveOperationException;
|
||||
|
||||
fun cond() = true
|
||||
|
||||
fun test(iae: IllegalAccessException?, cnfe: ClassNotFoundException?) {
|
||||
val reflective = if (cond()) iae else cnfe
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
test(null, null)
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
// RELEASE: 10
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 2 CHECKCAST java/lang/ReflectiveOperationException
|
||||
// 1 LOCALVARIABLE reflective Ljava/lang/ReflectiveOperationException;
|
||||
|
||||
fun cond() = true
|
||||
|
||||
fun test(iae: IllegalAccessException?, cnfe: ClassNotFoundException?) {
|
||||
val reflective = if (cond()) iae else cnfe
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
test(null, null)
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
// RELEASE: 11
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 2 CHECKCAST java/lang/ReflectiveOperationException
|
||||
// 1 LOCALVARIABLE reflective Ljava/lang/ReflectiveOperationException;
|
||||
|
||||
fun cond() = true
|
||||
|
||||
fun test(iae: IllegalAccessException?, cnfe: ClassNotFoundException?) {
|
||||
val reflective = if (cond()) iae else cnfe
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
test(null, null)
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
// RELEASE: 6
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 0 CHECKCAST java/lang/ReflectiveOperationException
|
||||
// 0 LOCALVARIABLE reflective Ljava/lang/ReflectiveOperationException;
|
||||
|
||||
fun cond() = true
|
||||
|
||||
fun test(iae: IllegalAccessException?, cnfe: ClassNotFoundException?) {
|
||||
val reflective = if (cond()) iae else cnfe
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
test(null, null)
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
// RELEASE: 8
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 2 CHECKCAST java/lang/ReflectiveOperationException
|
||||
// 1 LOCALVARIABLE reflective Ljava/lang/ReflectiveOperationException;
|
||||
|
||||
fun cond() = true
|
||||
|
||||
fun test(iae: IllegalAccessException?, cnfe: ClassNotFoundException?) {
|
||||
val reflective = if (cond()) iae else cnfe
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
test(null, null)
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
// RELEASE: 9
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// 2 CHECKCAST java/lang/ReflectiveOperationException
|
||||
// 1 LOCALVARIABLE reflective Ljava/lang/ReflectiveOperationException;
|
||||
|
||||
fun cond() = true
|
||||
|
||||
fun test(iae: IllegalAccessException?, cnfe: ClassNotFoundException?) {
|
||||
val reflective = if (cond()) iae else cnfe
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
test(null, null)
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user