[jbosstools-issues] [JBoss JIRA] (JBIDE-21058) JSF tests fail

Viacheslav Kabanovich (JIRA) issues at jboss.org
Thu Nov 5 15:39:00 EST 2015


     [ https://issues.jboss.org/browse/JBIDE-21058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Viacheslav Kabanovich updated JBIDE-21058:
------------------------------------------
    Description: 
Multiple failures are caused by
java.lang.NoClassDefFoundError: Could not initialize class org.jboss.tools.jsf.ui.JsfUiPlugin$PluginHolder
because of class cast exception at
(JsfUiPlugin)Platform.getPlugin(PLUGIN_ID)
since platform returned DefaultPlugin instead of JsfUiPlugin.

Method Platform.getPlugin(String) is deprecated and probably works in the latest Eclipse not as before. Multiple failures (80 and more) started with build #52 on October 25, 2015. Build #51had only few failed tests.
Pattern of initializing JsfUiPlugin is very uncommon and we should change it to the regular pattern in which static plugin instance is set in the constructor. 

  was:
Multiple failures are caused by
java.lang.NoClassDefFoundError: Could not initialize class org.jboss.tools.jsf.ui.JsfUiPlugin$PluginHolder
because of class cast exception at
(JsfUiPlugin)Platform.getPlugin(PLUGIN_ID)
since platform returned DefaultPlugin instead of JsfUiPlugin.

Pattern of initializing JsfUiPlugin is very uncommon and we should change it to the regular pattern in which static plugin instance is set in the constructor.



> JSF tests fail
> --------------
>
>                 Key: JBIDE-21058
>                 URL: https://issues.jboss.org/browse/JBIDE-21058
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: jsf
>    Affects Versions: 4.4.0.Alpha1
>            Reporter: Viacheslav Kabanovich
>            Assignee: Viacheslav Kabanovich
>             Fix For: 4.4.0.Alpha1
>
>
> Multiple failures are caused by
> java.lang.NoClassDefFoundError: Could not initialize class org.jboss.tools.jsf.ui.JsfUiPlugin$PluginHolder
> because of class cast exception at
> (JsfUiPlugin)Platform.getPlugin(PLUGIN_ID)
> since platform returned DefaultPlugin instead of JsfUiPlugin.
> Method Platform.getPlugin(String) is deprecated and probably works in the latest Eclipse not as before. Multiple failures (80 and more) started with build #52 on October 25, 2015. Build #51had only few failed tests.
> Pattern of initializing JsfUiPlugin is very uncommon and we should change it to the regular pattern in which static plugin instance is set in the constructor. 



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list