Author: scabanovich
Date: 2012-05-10 20:20:29 -0400 (Thu, 10 May 2012)
New Revision: 40936
Modified:
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver/TypeInfoCollector.java
Log:
JBIDE-11838
https://issues.jboss.org/browse/JBIDE-11838
Getter return type is checked to decide if it defines a Java property.
Modified:
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver/TypeInfoCollector.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver/TypeInfoCollector.java 2012-05-11
00:18:47 UTC (rev 40935)
+++
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver/TypeInfoCollector.java 2012-05-11
00:20:29 UTC (rev 40936)
@@ -586,7 +586,7 @@
private String[] fParameterTypeNames;
private String[] fParameterTypeQualifiedNames;
private String[] fParameterNames;
- private IJavaElement fJavaElement;
+ private IMethod fJavaElement;
public MethodInfo(IType sourceType, String declaringTypeQualifiedName, String name,
int modifiers, String[] parameterTypeQualifiedNames,
@@ -674,7 +674,9 @@
}
public boolean isGetter() {
- return getType() != null && BeanUtil.isGetter(getName(),
getNumberOfParameters());
+ return getType() != null
+ && BeanUtil.isGetter(getName(), getNumberOfParameters())
+ && BeanUtil.checkPropertyReturnType(getType().getName(), getName());
}
public boolean isSetter() {