Fix usages of javaClass property