Some better Java class support