How to avoid "Illegal type in constant pool" using "ldc_w <classname>" in Jasmin?
- by jazzdev
I'm writing a compiler that generates Jasmin code and
want to invoke a method that takes a Class as a parameter.
public class CTest
{
public static void main(String[] args)
throws Exception
{
java.lang.reflect.Array.newInstance(CTest.class, 0);
}
}
So in Jasmin, I think that should be:
.class public CTest2
.super…