[
http://jira.jboss.com/jira/browse/JBIDE-2060?page=comments#action_12409057 ]
Max Rydahl Andersen commented on JBIDE-2060:
--------------------------------------------
Looking on the latest commit the following code is in isSetter:
public boolean isSetter() {
if (null != getReturnType())
return false;
return ((getName().startsWith("set") &&
!getName().equals("set")) && getNumberOfParameters() == 1);
}
That check for return type is wrong, a setter can return any value they want.
Wrong suggestion of code completion in jsf
------------------------------------------
Key: JBIDE-2060
URL:
http://jira.jboss.com/jira/browse/JBIDE-2060
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: JSF, jsp/jsf/xml source editing
Affects Versions: 2.1
Environment: JBoss Tools 2.1 latest build
Reporter: Victor Rubezhny
Assigned To: Viacheslav Kabanovich
Fix For: 2.1
When a bean contains a methods like getXXX(param1, ...paramx) (which has 1 or more
parameters), the content assist shows these methods as properties.
When a bean contains a methods like setXXX(param1, param2, ...paramx) (which has more
than 1 parameters) or has no parameters at all, the content assist shows these methods as
properties.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira