Fix bug in Java class identification