I have the following code:
public class A
{
private class B
{
public String a = "";
public B(String a)
{
System.out.println("hello");
this.a = a;
}
}
public A()
{
System.out.println("bla");
B b = new B("what's up?");
System.out.println("world");
}
public static void main(String[] args)
{
new A();
}
}
For some reason, only the "bla" is printed, the other prints aren't printed. I'm loading this class file with jni using dynamic class loading and calling the main function.
What am I doing wrong?