Author: steve.ebersole(a)jboss.com
Date: 2008-03-18 03:23:06 -0400 (Tue, 18 Mar 2008)
New Revision: 14453
Modified:
core/trunk/core/src/main/java/org/hibernate/property/BasicPropertyAccessor.java
Log:
HHH-2268 : handle bridged return types for getters (ROLLBACK)
Modified: core/trunk/core/src/main/java/org/hibernate/property/BasicPropertyAccessor.java
===================================================================
---
core/trunk/core/src/main/java/org/hibernate/property/BasicPropertyAccessor.java 2008-03-18
07:12:54 UTC (rev 14452)
+++
core/trunk/core/src/main/java/org/hibernate/property/BasicPropertyAccessor.java 2008-03-18
07:23:06 UTC (rev 14453)
@@ -316,8 +316,8 @@
Method[] methods = theClass.getDeclaredMethods();
for (int i=0; i<methods.length; i++) {
- // only carry on if the method has no parameters and is not a bridge
- if ( methods[i].getParameterTypes().length == 0 && !methods[i].isBridge() ) {
+ // only carry on if the method has no parameters
+ if ( methods[i].getParameterTypes().length == 0 ) {
String methodName = methods[i].getName();
// try "get"