}
String className = attributeMetaDesc.getDataType().getClassName();
if (!ClassConstants.Long.equals(className)
&& !ClassConstants.primitive_long.equals(className)) {
if (classDeclaration.equals(fieldDeclaration.getDeclaringType())) {
throw new ValidationException(
MessageCode.SLIM3GEN1008,
env,
fieldDeclaration.getPosition());
}
throw new ValidationException(
MessageCode.SLIM3GEN1030,
env,
classDeclaration.getPosition(),
fieldDeclaration.getSimpleName(),
fieldDeclaration.getDeclaringType().getQualifiedName());