[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-6466) Several class loader related unsafe places in JBoss Tools

Max Rydahl Andersen (JIRA) jira-events at lists.jboss.org
Fri Jul 30 06:18:49 EDT 2010


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

Max Rydahl Andersen resolved JBIDE-6466.
----------------------------------------

         Assignee: Vitali Yemialyanchyk  (was: Max Rydahl Andersen)
    Fix Version/s: 3.2.0.M2
       Resolution: Partially Completed


Closing this since it is too many issues in one and some have been spun off (but no links back unfortunately ;(

Vitali, if there are still issues left that actual gives problems please create separate issues for it.

> Several class loader related unsafe places in JBoss Tools
> ---------------------------------------------------------
>
>                 Key: JBIDE-6466
>                 URL: https://jira.jboss.org/browse/JBIDE-6466
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: Archives, bpel, jbpm, jmx
>    Affects Versions: 3.1.1
>            Reporter: Vitali Yemialyanchyk
>            Assignee: Vitali Yemialyanchyk
>             Fix For: 3.2.0.M2
>
>
> I find several unsafe places which are related with Thread.currentThread().getContextClassLoader() and Thread.currentThread().setContextClassLoader(). These places in code could have dramatic outcome during JBoss Tools normal work.
> Especially Hibernate Tools depends on it - and this result will be visible ONLY in JPA confoguration.
> Here are code places:
> 1) \jbosstools\trunk\jbpm\plugins\org.jboss.tools.flow.jpdl4.multipage\src\org\jboss\tools\flow\jpdl4\multipage\validator\Jpdl4Validator.java 
> 2) \jbosstools\trunk\archives\plugins\org.jboss.ide.eclipse.archives.core\src\main\org\jboss\ide\eclipse\archives\core\model\internal\xb\XMLBinding.java 
> 1 and 2 - are dangerous cause in case of execution exception - here there are no restore of Thread.currentThread() - ContextClassLoader;
> 3) \jbosstools\trunk\as\plugins\org.jboss.ide.eclipse.as.core\jbosscore\org\jboss\ide\eclipse\as\core\extensions\jmx\JMXSafeRunner.java 
> 3 - here also Hibernate Tools dangerous place in finally block - if we get exception in 
> JMXClassLoaderRepository.getDefault().removeConcerned(s, r);
> 4) \jbosstools\trunk\common\plugins\org.jboss.tools.common\src\org\jboss\tools\common\xml\SAXValidator.java 
> 4 - here also Hibernate Tools dangerous place in finally block - if we get exception in 
> ErrorHandlerImpl h = new ErrorHandlerImpl();
> 5) \jbosstools\trunk\bpel\plugins\org.eclipse.bpel.ui\src\org\eclipse\bpel\ui\util\BPELEditorUtil.java 
> - here is potential unsafe code commented;
> 6) \jbosstools\trunk\smooks\plugins\org.jboss.tools.smooks.ui\src\org\jboss\tools\smooks\edimap\editor\EDIMapFormPage.java 
> - here is potential unsafe code commented;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list