Use 'resolveEnum' to tell the difference between Enum can Class on cpp and flash9