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:
Marc Prud'hommeaux 2007-08-06 15:52:55 +00:00
parent 156a7ffdd0
commit a5010b4a78
1 changed files with 2 additions and 1 deletions

View File

@ -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();
}