mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 00:24:57 +00:00
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:
parent
adf3311e58
commit
ba2505d041
@ -316,8 +316,8 @@ private static Method getterMethod(Class theClass, String propertyName) {
|
|||||||
|
|
||||||
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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user