Make fields of JavaClass private.
Fix constants (may want to change it later actually).