openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mprud...@apache.org
Subject svn commit: r563175 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java
Date Mon, 06 Aug 2007 15:52:56 GMT
Author: mprudhom
Date: Mon Aug  6 08:52:55 2007
New Revision: 563175

URL: http://svn.apache.org/viewvc?view=rev&rev=563175
Log:
OPENJPA240 fixed to use JavaVersions.isEnumeration rather than Class.isEnum (which is not
available in JDK 1.4)

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java?view=diff&rev=563175&r1=563174&r2=563175
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java
Mon Aug  6 08:52:55 2007
@@ -622,7 +622,8 @@
     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();
     }



Mime
View raw message