[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-7892) Search for @Named beans.

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Tue Aug 16 17:04:17 EDT 2011


    [ https://issues.jboss.org/browse/JBIDE-7892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12621462#comment-12621462 ] 

Alexey Kazakov commented on JBIDE-7892:
---------------------------------------

EXECUTE: Create the following bean in any CDI project:
{code}
@Named("foo")
public class Test {
}
{code}
EXECUTE: Press Ctrl+Alt+Z or click on Open CDI Named Bean
EXECUTE: Enter foo
EXECUTE: Select foo
ASSERT: Test.java is open
EXECUTE: Rename @Named("foo") to @Named("fooNew")
EXECUTE: Press Ctrl+Alt+Z or click on Open CDI Named Bean
EXECUTE: Enter foo
FAILURE: There are two beans: foo and fooNew
EXECUTE: Select foo
FAILURE: The following exception is thrown in eclipse log:
{code}
java.lang.NullPointerException
	at org.jboss.tools.cdi.ui.handlers.OpenCDINamedBeanHandler.execute(OpenCDINamedBeanHandler.java:67)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
	at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
	at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:829)
	at org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:815)
	at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:805)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
{code}

This issue must be fixed!

> Search for @Named beans.
> ------------------------
>
>                 Key: JBIDE-7892
>                 URL: https://issues.jboss.org/browse/JBIDE-7892
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: cdi
>            Reporter: Alexey Kazakov
>            Assignee: Alexey Kazakov
>              Labels: new_and_noteworthy
>             Fix For: 3.3.0.M3
>
>
> It would be good to have some dialog like Open Seam Component or Open Type.

--
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