[java] correctly set callstack