blob: a666de7f39dc8ded68bcf57460dc2d02eb811f6f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import scala.collection.JavaConverters._
import scala.tools.asm
import scala.tools.asm.Opcodes
import scala.tools.partest.BytecodeTest
object Test extends BytecodeTest {
def show: Unit = {
val classNode = loadClassNode("Props")
val methods = classNode.methods.iterator().asScala.filter( m => m.name == "create")
for (m <- methods if (m.access & Opcodes.ACC_VARARGS) > 0) {
println(s"Found vararg overload for method ${m.name}")
}
}
}
|