HHH-2268 : handle bridged return types for getters (ROLLBACK)

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@14453 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Steve Ebersole 2008-03-18 07:23:06 +00:00
parent adf3311e58
commit ba2505d041
1 changed files with 2 additions and 2 deletions

View File

@ -316,8 +316,8 @@ public class BasicPropertyAccessor implements PropertyAccessor {
Method[] methods = theClass.getDeclaredMethods(); Method[] methods = theClass.getDeclaredMethods();
for (int i=0; i<methods.length; i++) { for (int i=0; i<methods.length; i++) {
// only carry on if the method has no parameters and is not a bridge // only carry on if the method has no parameters
if ( methods[i].getParameterTypes().length == 0 && !methods[i].isBridge() ) { if ( methods[i].getParameterTypes().length == 0 ) {
String methodName = methods[i].getName(); String methodName = methods[i].getName();
// try "get" // try "get"