mirror of https://github.com/apache/openjpa.git
OPENJPA240 fixed to use JavaVersions.isEnumeration rather than Class.isEnum (which is not available in JDK 1.4)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563175 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
156a7ffdd0
commit
a5010b4a78
|
@ -622,7 +622,8 @@ public class FieldMetaData
|
|||
private boolean isEnum() {
|
||||
if (_enumField == null) {
|
||||
Class dt = getDeclaredType();
|
||||
_enumField = dt.isEnum() ? Boolean.TRUE : Boolean.FALSE;
|
||||
_enumField = JavaVersions.isEnumeration(dt)
|
||||
? Boolean.TRUE : Boolean.FALSE;
|
||||
}
|
||||
return _enumField.booleanValue();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue