this native method should also resolve classes
change order to match native java