The CubeEnhancer would complain "Unable to enhance field . with primitive type int. Use type Int." This is incorrect, as primitive type int corresponds to Integer, not Int. Also, char corresponds to Character, not char.
The Javassist CtPrimitiveType does not have a method to return the simple name of the wrapper class. The proposed change would make the message "Unable to enhance field . with primitive type int. Use type java.lang.Integer." Optionally, we could strip the package name with .replaceAll("^.+\\.", "").
The CubeEnhancer would complain "Unable to enhance field. with primitive type int. Use type Int." This is incorrect, as primitive type int corresponds to Integer, not Int. Also, char corresponds to Character, not char.
The Javassist CtPrimitiveType does not have a method to return the simple name of the wrapper class. The proposed change would make the message "Unable to enhance field. with primitive type int. Use type java.lang.Integer." Optionally, we could strip the package name with
.replaceAll("^.+\\.", "")
.