From a5010b4a788bfddea3bb5de7cf791fe39e549828 Mon Sep 17 00:00:00 2001 From: Marc Prud'hommeaux Date: Mon, 6 Aug 2007 15:52:55 +0000 Subject: [PATCH] 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 --- .../src/main/java/org/apache/openjpa/meta/FieldMetaData.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java b/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java index 631f613c2..15871fa6a 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java @@ -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(); }