Fixed bug concerning Enum's method getDeclaringClass()