summaryrefslogtreecommitdiff
path: root/test/files/run/noInlineUnknownIndy.check
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@gmail.com>2015-07-08 12:40:39 +0200
committerLukas Rytz <lukas.rytz@gmail.com>2015-07-08 12:40:39 +0200
commit0e98c59aa180053a2684150bb9234bef4685d0be (patch)
treeb90c677c3ec148b251010c5adeb954eadfcdca34 /test/files/run/noInlineUnknownIndy.check
parentd1f2084563288e9198e7c00f8a4d078802f53eaf (diff)
downloadscala-0e98c59aa180053a2684150bb9234bef4685d0be.tar.gz
scala-0e98c59aa180053a2684150bb9234bef4685d0be.tar.bz2
scala-0e98c59aa180053a2684150bb9234bef4685d0be.zip
Test warnings when an indy cannot be inlined
There are two cases tested here - An indyLMF where the lambda body method is private - An indy where the bootstrap method is not LMF
Diffstat (limited to 'test/files/run/noInlineUnknownIndy.check')
-rw-r--r--test/files/run/noInlineUnknownIndy.check13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/run/noInlineUnknownIndy.check b/test/files/run/noInlineUnknownIndy.check
new file mode 100644
index 0000000000..7cc6d1b675
--- /dev/null
+++ b/test/files/run/noInlineUnknownIndy.check
@@ -0,0 +1,13 @@
+newSource1.scala:1: warning: A_1::test()Ljava/lang/String; could not be inlined:
+Failed to check if A_1::test()Ljava/lang/String; can be safely inlined to T without causing an IllegalAccessError. Checking instruction INVOKEDYNAMIC m()LA_1$Fun; [
+ // handle kind 0x6 : INVOKESTATIC
+ not/java/lang/SomeLambdaMetafactory.notAMetaFactoryMethod(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;
+ // arguments:
+ (Ljava/lang/String;)Ljava/lang/String;,
+ // handle kind 0x6 : INVOKESTATIC
+ A_1.lambda$test$0(Ljava/lang/String;)Ljava/lang/String;,
+ (Ljava/lang/String;)Ljava/lang/String;
+ ] failed:
+The callee contains an InvokeDynamic instruction with an unknown bootstrap method (not a LambdaMetaFactory).
+class T { def foo = A_1.test }
+ ^