You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
➜ sandbox git:(yoptInScala) ✗ qsc -Yopt:l:classpath -Yopt-warnings:_ Test.scala
Test.scala:9: warning: A::assert(Z)V is annotated @inline but could not be inlined:
The callee A::assert(Z)V contains the instruction INVOKEDYNAMIC apply()Lscala/runtime/java8/JFunction0; [
// handle kind 0x6 : INVOKESTATIC
java/lang/invoke/LambdaMetafactory.altMetafactory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;
// arguments:
()Ljava/lang/Object;,
// handle kind 0x6 : INVOKESTATIC
A.A$$$anonfun$1()Ljava/lang/String;,
()Ljava/lang/String;,
3,
1,
Lscala/Serializable;.class,
0
]
that would cause an IllegalAccessError when inlined into class A.
assert(b)
^
one warning found
When enabling the new optimizer in scala/scala (scala/scala#4602), we needed to add a filter to some partest tests to make them ignore the new inliner warning:
presentation/t7678
run/t8029.scala
The text was updated successfully, but these errors were encountered:
The GenBCode inliner doesn't inline methods that have an
invokedynamic
instruction, see here and here.When enabling the new optimizer in scala/scala (scala/scala#4602), we needed to add a filter to some partest tests to make them ignore the new inliner warning:
presentation/t7678
run/t8029.scala
The text was updated successfully, but these errors were encountered: