openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r564093 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java
Date Thu, 09 Aug 2007 05:56:02 GMT
Author: pcl
Date: Wed Aug  8 22:56:02 2007
New Revision: 564093

URL: http://svn.apache.org/viewvc?view=rev&rev=564093
Log:
OPENJPA-293. Corrected PCEnhancer to use FieldMetaData.getDeclaredType() instead of getType()
in some situations.

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java?view=diff&rev=564093&r1=564092&r2=564093
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java
Wed Aug  8 22:56:02 2007
@@ -3339,7 +3339,8 @@
      */
     private void addSubclassGetMethod(FieldMetaData fmd) {
         String methName = getGetterName(fmd);
-        BCMethod getter = _pc.declareMethod(methName, fmd.getType(), null);
+        BCMethod getter = _pc.declareMethod(methName, fmd.getDeclaredType(),
+            null);
         setVisibilityToSuperMethod(getter);
         getter.makePublic();
         Code code = getter.getCode(true);
@@ -3352,8 +3353,8 @@
 
         code.aload().setThis();
         code.invokespecial().setMethod(_managedType.getType(), methName,
-            fmd.getType(), null);
-        code.xreturn().setType(fmd.getType());
+            fmd.getDeclaredType(), null);
+        code.xreturn().setType(fmd.getDeclaredType());
         code.calculateMaxLocals();
         code.calculateMaxStack();
     }



Mime
View raw message