[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-9473) Java source reference search doesn't work for EL in CDI projects
Alexey Kazakov (JIRA)
jira-events at lists.jboss.org
Tue Aug 23 19:23:17 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-9473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Kazakov updated JBIDE-9473:
----------------------------------
Steps to Reproduce:
EXECUTE: Create a CDI project.
EXECUTE: Add the following bean:
{code}
@Named
public class MyBean {
@Produces @Named public String foo;
@Produces @Named public String foo1() {
return "";
}
public String foo2() {
return "";
}
}
{code}
And the following ELs to any page:
{code}
#{myBean.foo2()}
#{foo}
#{foo1}
{code}
ASSERT: Shift+Ctrl+G on MyBean should find #{myBean.foo2()} - FAILURE!
ASSERT: Shift+Ctrl+G on MyBean.foo should find #{foo} - FAILURE!
ASSERT: Shift+Ctrl+G on MyBean.foo1() should find #{foo1} - FAILURE!
was:
EXECUTE: Create a CDI project.
EXECUTE: Add the following bean:
{code}
@Named
public class MyBean {
@Named public String foo;
@Named public String foo1() {
return "";
}
public String foo2() {
return "";
}
}
{code}
And the following ELs to any page:
{code}
#{myBean.foo2()}
#{foo}
#{foo1}
{code}
ASSERT: Shift+Ctrl+G on MyBean should find #{myBean.foo2()} - FAILURE!
ASSERT: Shift+Ctrl+G on MyBean.foo should find #{foo} - FAILURE!
ASSERT: Shift+Ctrl+G on MyBean.foo1() should find #{foo1} - FAILURE!
> Java source reference search doesn't work for EL in CDI projects
> ----------------------------------------------------------------
>
> Key: JBIDE-9473
> URL: https://issues.jboss.org/browse/JBIDE-9473
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: common
> Affects Versions: 3.3.0.M3
> Reporter: Alexey Kazakov
> Assignee: Alexey Kazakov
> Priority: Critical
> Fix For: 3.3.0.M3
>
>
> It seems that Shift+Ctrl+G on Java elements searches for EL only in Seam 2 projects and only if you are searching for a method/field reference (not a type).
> Our search participant should work for any kind of Java projects and delegates such a search to EL resolvers. So it's responsibility of EL resolvers to recognize if the element is used in the EL.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list